From: Michael Munday Date: Tue, 27 Sep 2016 14:45:05 +0000 (-0400) Subject: cmd/asm: add s390x instructions BLTU and BLEU X-Git-Tag: go1.8beta1~1140 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a30b5a3d1916deb6e366aa4557d6c21eb835d737;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Bill O'Farrell Reviewed-by: Brad Fitzpatrick --- 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