diff options
| author | Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> | 2018-10-01 18:24:43 -0300 |
|---|---|---|
| committer | Lynn Boger <laboger@linux.vnet.ibm.com> | 2018-10-02 18:56:06 +0000 |
| commit | 9aed4cc3956117d3d435bcd90e69d5e1820f8ad3 (patch) | |
| tree | f588e901be518075e1946d1f51c1d34a4649e1b7 /test/codegen/mathbits.go | |
| parent | f5e58442da1c08f5cd503f0a5f8eeafd858210cc (diff) | |
| download | go-9aed4cc3956117d3d435bcd90e69d5e1820f8ad3.tar.xz | |
cmd/compile: instrinsify math/bits.Mul on ppc64x
Add SSA rules to intrinsify Mul/Mul64 on ppc64x.
benchmark old ns/op new ns/op delta
BenchmarkMul-40 8.80 0.93 -89.43%
BenchmarkMul32-40 1.39 1.39 +0.00%
BenchmarkMul64-40 5.39 0.93 -82.75%
Updates #24813
Change-Id: I6e95bfbe976a2278bd17799df184a7fbc0e57829
Reviewed-on: https://go-review.googlesource.com/138917
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Diffstat (limited to 'test/codegen/mathbits.go')
| -rw-r--r-- | test/codegen/mathbits.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go index 834b08f101..9bb2254155 100644 --- a/test/codegen/mathbits.go +++ b/test/codegen/mathbits.go @@ -310,11 +310,13 @@ func IterateBits8(n uint8) int { func Mul(x, y uint) (hi, lo uint) { // amd64:"MULQ" // arm64:"UMULH","MUL" + // ppc64: "MULHDU", "MULLD" return bits.Mul(x, y) } func Mul64(x, y uint64) (hi, lo uint64) { // amd64:"MULQ" // arm64:"UMULH","MUL" + // ppc64: "MULHDU", "MULLD" return bits.Mul64(x, y) } |
