]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/asm: add s390x instructions BLTU and BLEU
authorMichael Munday <munday@ca.ibm.com>
Tue, 27 Sep 2016 14:45:05 +0000 (10:45 -0400)
committerMichael Munday <munday@ca.ibm.com>
Tue, 27 Sep 2016 16:01:01 +0000 (16:01 +0000)
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>
src/cmd/asm/internal/arch/s390x.go
src/cmd/asm/internal/asm/testdata/s390x.s

index 6fa0292759dcc605e04fa3355266132f31859f03..244758df5f28ebd51c08a71df5a606913b0c10ae 100644 (file)
@@ -22,7 +22,9 @@ func jumpS390x(word string) bool {
                "BGT",
                "BL",
                "BLE",
+               "BLEU",
                "BLT",
+               "BLTU",
                "BNE",
                "BR",
                "BVC",
index 4b1d57306458613ba222bcc1992e35e537bab435..be31221d00f20191bb77e5c3880a164593272e68 100644 (file)
@@ -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