]> Cypherpunks repositories - gostls13.git/commit
test: port bits.Len intrinsics tests to the new codegen harness
authorAlberto Donizetti <alb.donizetti@gmail.com>
Fri, 2 Mar 2018 14:16:27 +0000 (15:16 +0100)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 5 Mar 2018 18:01:19 +0000 (18:01 +0000)
commitc1806906d89ecc65136be4bbdfb9020c797be46c
tree60b513607d53d3e421163ab1525f00cb46a1b844
parent63bcabed498a53a24da51ca1264b338c1149be07
test: port bits.Len intrinsics tests to the new codegen harness

This change move bits.Len* intrinsification tests to the new codegen
test harness, removing them from the old ssa_test file. Five different
test functions (one for each bit.Len function tested) was used, to
avoid possible unwanted interactions between multiple calls inside one
function.

Change-Id: Iffd5be55b58e88597fa30a562a28dacb01236d8b
Reviewed-on: https://go-review.googlesource.com/98156
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Giovanni Bajo <rasky@develer.com>
src/cmd/compile/internal/gc/asm_test.go
test/codegen/mathbits.go [new file with mode: 0644]