]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make math/bits.RotateLeft{32,64} intrinsics on ppc64x
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Fri, 22 Feb 2019 19:12:37 +0000 (16:12 -0300)
committerCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Thu, 14 Mar 2019 14:13:34 +0000 (14:13 +0000)
commitf2a18b1456e9cbb83ada13776195c56d2a6fb951
tree592da665079bec94fa10256e2db164277d2dd8e0
parenteca5c83a3e8b926d663b6a824c76b4dadac7b66d
cmd/compile: make math/bits.RotateLeft{32,64} intrinsics on ppc64x

Extends CL 132435 to ppc64x. ppc64x has 32- and 64-bit variable
rotate left instructions.

name             old time/op  new time/op  delta
RotateLeft32-16  1.39ns ± 0%  1.37ns ± 0%  -1.44%  (p=0.008 n=5+5)
RotateLeft64-16  1.35ns ± 0%  1.32ns ± 0%  -2.22%  (p=0.008 n=5+5)

Updates #17566

Change-Id: I567f634ff90d0691db45df0a25c99fcdfe10ca00
Reviewed-on: https://go-review.googlesource.com/c/go/+/163760
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go