aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/mathbits.go
diff options
context:
space:
mode:
authorMeng Zhuo <mengzhuo1203@gmail.com>2019-10-13 18:51:49 +0800
committerCherry Zhang <cherryyz@google.com>2019-10-14 21:23:34 +0000
commit50f1157760a3357f34520fd74c030dee0c44c8fd (patch)
tree61598247265959e5a411d30044ae3e57a2cfa3fe /test/codegen/mathbits.go
parent9f95a3097710fa4aa01910218454d23fa880f736 (diff)
downloadgo-50f1157760a3357f34520fd74c030dee0c44c8fd.tar.xz
cmd/compile: add math/bits.Mul64 intrinsic on mips64x
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 <khr@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'test/codegen/mathbits.go')
-rw-r--r--test/codegen/mathbits.go2
1 files changed, 2 insertions, 0 deletions
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)
}