diff options
| author | Michael Munday <munday@ca.ibm.com> | 2016-09-16 21:42:18 -0400 |
|---|---|---|
| committer | Michael Munday <munday@ca.ibm.com> | 2016-09-19 19:03:01 +0000 |
| commit | e94c52933b9c414d3f8fa94ead0d9cc5b7d7d717 (patch) | |
| tree | 050010b019816fc8885e9ae25d752313a2f09d4b /src/cmd/asm | |
| parent | f1973fca717f2c3f3f10bcc2bc3512a4c549710b (diff) | |
| download | go-e94c52933b9c414d3f8fa94ead0d9cc5b7d7d717.tar.xz | |
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>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/s390x.s | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/s390x.s b/src/cmd/asm/internal/asm/testdata/s390x.s index 6b6e2236d4..3a01f29419 100644 --- a/src/cmd/asm/internal/asm/testdata/s390x.s +++ b/src/cmd/asm/internal/asm/testdata/s390x.s @@ -104,6 +104,7 @@ TEXT main·foo(SB),7,$16-0 // TEXT main.foo(SB), 7, $16-0 NEG R1, R2 // b9030021 NEGW R1 // b9130011 NEGW R1, R2 // b9130021 + FLOGR R2, R2 // b9830022 LAA R1, R2, 524287(R3) // eb213fff7ff8 LAAG R4, R5, -524288(R6) // eb54600080e8 |
