diff options
author | Michael Munday <munday@ca.ibm.com> | 2017-04-19 14:14:28 -0400 |
---|---|---|
committer | Michael Munday <mike.munday@ibm.com> | 2017-10-30 23:55:14 +0000 |
commit | c280126557ee53b5b80f9f41eac18d801daa282e (patch) | |
tree | 458183ed13c816bf0308b0ed2f3ee2d39e354140 /src/math | |
parent | 96cdacb9717271126eb60de3d8410c9cecd67b28 (diff) | |
download | go-git-c280126557ee53b5b80f9f41eac18d801daa282e.tar.gz |
cmd/asm, cmd/internal/obj/s390x, math: add "test under mask" instructions
Adds the following s390x test under mask (immediate) instructions:
TMHH
TMHL
TMLH
TMLL
These are useful for testing bits and are already used in the math package.
Change-Id: Idffb3f83b238dba76ac1e42ac6b0bf7f1d11bea2
Reviewed-on: https://go-review.googlesource.com/41092
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/sin_s390x.s | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/math/sin_s390x.s b/src/math/sin_s390x.s index 39cc05452a..e2201e0b2c 100644 --- a/src/math/sin_s390x.s +++ b/src/math/sin_s390x.s @@ -110,7 +110,7 @@ L2: WFMDB V1, V1, V2 LGDR F3, R1 MOVD $sincosxlim<>+0(SB), R2 - WORD $0xA7110001 //tmll %r1,1 + TMLL R1, $1 BEQ L6 FMOVD 0(R2), F0 WFCHDBS V0, V5, V0 @@ -134,7 +134,7 @@ L2: WFMADB V2, V0, V3, V0 FMOVD 0(R2), F6 WFMADB V1, V4, V6, V4 - WORD $0xA7110002 //tmll %r1,2 + TMLL R1, $2 WFMADB V2, V0, V4, V0 MOVD $sincosc0<>+0(SB), R1 FMOVD 0(R1), F2 @@ -170,7 +170,7 @@ L6: FNEG F6, F4 WFMADB V2, V0, V3, V2 WFMDB V4, V1, V0 - WORD $0xA7110002 //tmll %r1,2 + TMLL R1, $2 WFMSDB V0, V2, V6, V0 BNE L15 FMOVD F0, ret+8(FP) @@ -261,7 +261,7 @@ L21: FMOVD 0(R2), F5 WFMDB V2, V2, V6 MOVD $sincosxlim<>+0(SB), R2 - WORD $0xA7110001 //tmll %r1,1 + TMLL R1, $1 BNE L25 FMOVD 0(R2), F0 WFCHDBS V0, V1, V0 @@ -285,7 +285,7 @@ L21: WFMADB V6, V0, V3, V0 FMOVD 0(R2), F1 WFMADB V2, V4, V1, V4 - WORD $0xA7110002 //tmll %r1,2 + TMLL R1, $2 WFMADB V6, V0, V4, V0 MOVD $sincosc0<>+0(SB), R1 FMOVD 0(R1), F4 @@ -320,7 +320,7 @@ L25: FMADD F3, F2, F1 FMUL F0, F2 WFMADB V6, V4, V1, V6 - WORD $0xA7110002 //tmll %r1,2 + TMLL R1, $2 FMADD F6, F2, F0 BNE L34 FMOVD F0, ret+8(FP) |