1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:24:54 -07:00

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>
This commit is contained in:
Michael Munday 2016-09-27 10:45:05 -04:00
parent 17a8ec2c4f
commit a30b5a3d19
2 changed files with 4 additions and 0 deletions

View File

@ -22,7 +22,9 @@ func jumpS390x(word string) bool {
"BGT", "BGT",
"BL", "BL",
"BLE", "BLE",
"BLEU",
"BLT", "BLT",
"BLTU",
"BNE", "BNE",
"BR", "BR",
"BVC", "BVC",

View File

@ -142,6 +142,8 @@ TEXT main·foo(SB),7,$16-0 // TEXT main.foo(SB), 7, $16-0
BLE 0(PC) // a7c40000 BLE 0(PC) // a7c40000
BGT 0(PC) // a7240000 BGT 0(PC) // a7240000
BGE 0(PC) // a7a40000 BGE 0(PC) // a7a40000
BLTU 0(PC) // a7540000
BLEU 0(PC) // a7d40000
CMPBNE R1, R2, 0(PC) // ec1200007064 CMPBNE R1, R2, 0(PC) // ec1200007064
CMPBEQ R3, R4, 0(PC) // ec3400008064 CMPBEQ R3, R4, 0(PC) // ec3400008064