]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add math/bits.Mul64 intrinsic on mips64x
authorMeng Zhuo <mengzhuo1203@gmail.com>
Sun, 13 Oct 2019 10:51:49 +0000 (18:51 +0800)
committerCherry Zhang <cherryyz@google.com>
Mon, 14 Oct 2019 21:23:34 +0000 (21:23 +0000)
commit50f1157760a3357f34520fd74c030dee0c44c8fd
tree61598247265959e5a411d30044ae3e57a2cfa3fe
parent9f95a3097710fa4aa01910218454d23fa880f736
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>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/MIPS64.rules
src/cmd/compile/internal/ssa/rewriteMIPS64.go
test/codegen/mathbits.go