]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: intrinsify math.RoundToEven on s390x
authorMichael Munday <mike.munday@ibm.com>
Mon, 30 Oct 2017 13:02:44 +0000 (09:02 -0400)
committerMichael Munday <mike.munday@ibm.com>
Tue, 31 Oct 2017 18:04:27 +0000 (18:04 +0000)
commit4745604bcb90f8823f78b6e4f32e972615b6b89a
tree227231c047c79d52047ec45d702d97a87ebd96d9
parent51daa25c6c3441dc9e5a10f65896f553e3f7a862
cmd/compile: intrinsify math.RoundToEven on s390x

The new RoundToEven function can be implemented as a single FIDBR
instruction on s390x.

name         old time/op  new time/op  delta
RoundToEven  5.32ns ± 1%  0.86ns ± 1%  -83.86%  (p=0.000 n=10+10)

Change-Id: Iaf597e57a0d1085961701e3c75ff4f6f6dcebb5f
Reviewed-on: https://go-review.googlesource.com/74350
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/asm_test.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteS390X.go