From 50f1157760a3357f34520fd74c030dee0c44c8fd Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Sun, 13 Oct 2019 18:51:49 +0800 Subject: cmd/compile: add math/bits.Mul64 intrinsic on mips64x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Benchmark: name old time/op new time/op delta Mul 36.0ns ± 1% 2.8ns ± 0% -92.31% (p=0.000 n=10+10) Mul32 4.37ns ± 0% 4.37ns ± 0% ~ (p=0.429 n=6+10) Mul64 36.4ns ± 0% 2.8ns ± 0% -92.37% (p=0.000 n=10+9) Change-Id: Ic4f4e5958adbf24999abcee721d0180b5413fca7 Reviewed-on: https://go-review.googlesource.com/c/go/+/200582 Reviewed-by: Keith Randall Reviewed-by: Cherry Zhang Run-TryBot: Cherry Zhang TryBot-Result: Gobot Gobot --- test/codegen/mathbits.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/codegen/mathbits.go') diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go index 5adf7f5fcd..e405d6b1d2 100644 --- a/test/codegen/mathbits.go +++ b/test/codegen/mathbits.go @@ -558,6 +558,7 @@ func Mul(x, y uint) (hi, lo uint) { // ppc64:"MULHDU","MULLD" // ppc64le:"MULHDU","MULLD" // s390x:"MLGR" + // mips64: "MULVU" return bits.Mul(x, y) } @@ -567,6 +568,7 @@ func Mul64(x, y uint64) (hi, lo uint64) { // ppc64:"MULHDU","MULLD" // ppc64le:"MULHDU","MULLD" // s390x:"MLGR" + // mips64: "MULVU" return bits.Mul64(x, y) } -- cgit v1.3