From 9aed4cc3956117d3d435bcd90e69d5e1820f8ad3 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Seo Date: Mon, 1 Oct 2018 18:24:43 -0300 Subject: 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 --- test/codegen/mathbits.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/codegen') 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) } -- cgit v1.3-5-g9baa