]> Cypherpunks repositories - gostls13.git/commit
test/codegen: port math/bits.RotateLeft tests to codegen
authorAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 8 Mar 2018 16:43:55 +0000 (17:43 +0100)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Fri, 9 Mar 2018 10:53:38 +0000 (10:53 +0000)
commitcde34780b7a0bbd162321a34c41fc8a6268e2c09
treeee2cf248d50e7caeaf2dac7532730cd1296ad416
parent6b5a0b5c1674e82749664b124daf0e6b15af04dd
test/codegen: port math/bits.RotateLeft tests to codegen

Only RotateLeft{64,32} were tested, and just for ppc64. This CL adds
tests for RotateLeft{64,32,16,8} on arm64 and amd64/386, for the cases
where the calls are actually instrinsified.

RotateLeft tests (the last ones for math/bits functions) are deleted
from asm_test.

This CL also adds a space between the "//" and the arch name in the
comments, to uniform this file to the style used in all the other
files.

Change-Id: Ifc2a27261d70bcc294b4ec64490d8367f62d2b89
Reviewed-on: https://go-review.googlesource.com/99596
Reviewed-by: Giovanni Bajo <rasky@develer.com>
src/cmd/compile/internal/gc/asm_test.go
test/codegen/mathbits.go