mirror of
https://github.com/golang/go
synced 2024-11-18 07:14:44 -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:
parent
17a8ec2c4f
commit
a30b5a3d19
@ -22,7 +22,9 @@ func jumpS390x(word string) bool {
|
||||
"BGT",
|
||||
"BL",
|
||||
"BLE",
|
||||
"BLEU",
|
||||
"BLT",
|
||||
"BLTU",
|
||||
"BNE",
|
||||
"BR",
|
||||
"BVC",
|
||||
|
2
src/cmd/asm/internal/asm/testdata/s390x.s
vendored
2
src/cmd/asm/internal/asm/testdata/s390x.s
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user