]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: intrinsify Ctz{32,64} and Bswap{32,64} on s390x
authorMichael Munday <munday@ca.ibm.com>
Sat, 17 Sep 2016 01:42:18 +0000 (21:42 -0400)
committerMichael Munday <munday@ca.ibm.com>
Mon, 19 Sep 2016 19:03:01 +0000 (19:03 +0000)
commite94c52933b9c414d3f8fa94ead0d9cc5b7d7d717
tree050010b019816fc8885e9ae25d752313a2f09d4b
parentf1973fca717f2c3f3f10bcc2bc3512a4c549710b
cmd/compile: intrinsify Ctz{32,64} and Bswap{32,64} on s390x

Also adds the 'find leftmost one' instruction (FLOGR) and replaces the
WORD-encoded use of FLOGR in math/big with it.

Change-Id: I18e7cd19e75b8501a6ae8bd925471f7e37ded206
Reviewed-on: https://go-review.googlesource.com/29372
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
13 files changed:
src/cmd/asm/internal/asm/testdata/s390x.s
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/s390x/prog.go
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteS390X.go
src/cmd/internal/obj/s390x/a.out.go
src/cmd/internal/obj/s390x/anames.go
src/cmd/internal/obj/s390x/asmz.go
src/math/big/arith_s390x.s
test/intrinsic.go