diff options
| author | Michael Munday <munday@ca.ibm.com> | 2016-09-27 10:45:05 -0400 |
|---|---|---|
| committer | Michael Munday <munday@ca.ibm.com> | 2016-09-27 16:01:01 +0000 |
| commit | a30b5a3d1916deb6e366aa4557d6c21eb835d737 (patch) | |
| tree | 0f6ffa2aa07741b024310ba5d5377fed161c1218 /src | |
| parent | 17a8ec2c4f702039652a4bc9630d233b454cfae8 (diff) | |
| download | go-a30b5a3d1916deb6e366aa4557d6c21eb835d737.tar.xz | |
cmd/asm: add s390x instructions BLTU and BLEU
These instructions are the same as BLT and BLE except that they
also branch if the 'unordered' bit is set in the condition code.
They are already used by the SSA backend. This change allows them
to be used in hand-written assembly code.
Change-Id: Ie9b5985a5e87ea22e8043567a286e09dce16a2db
Reviewed-on: https://go-review.googlesource.com/29930
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/asm/internal/arch/s390x.go | 2 | ||||
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/s390x.s | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/arch/s390x.go b/src/cmd/asm/internal/arch/s390x.go index 6fa0292759..244758df5f 100644 --- a/src/cmd/asm/internal/arch/s390x.go +++ b/src/cmd/asm/internal/arch/s390x.go @@ -22,7 +22,9 @@ func jumpS390x(word string) bool { "BGT", "BL", "BLE", + "BLEU", "BLT", + "BLTU", "BNE", "BR", "BVC", diff --git a/src/cmd/asm/internal/asm/testdata/s390x.s b/src/cmd/asm/internal/asm/testdata/s390x.s index 4b1d573064..be31221d00 100644 --- a/src/cmd/asm/internal/asm/testdata/s390x.s +++ b/src/cmd/asm/internal/asm/testdata/s390x.s @@ -142,6 +142,8 @@ TEXT main·foo(SB),7,$16-0 // TEXT main.foo(SB), 7, $16-0 BLE 0(PC) // a7c40000 BGT 0(PC) // a7240000 BGE 0(PC) // a7a40000 + BLTU 0(PC) // a7540000 + BLEU 0(PC) // a7d40000 CMPBNE R1, R2, 0(PC) // ec1200007064 CMPBEQ R3, R4, 0(PC) // ec3400008064 |
