mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
Testcases for ARM assembly BX/BXJ instructions.
llvm-svn: 135078
This commit is contained in:
parent
93cf7d8372
commit
c7e0941dac
@ -326,12 +326,34 @@ _func:
|
||||
bl _bar
|
||||
@ FIXME: blx _bar
|
||||
|
||||
@ CHECK: bl _bar @ encoding: [A,A,A,0xeb]
|
||||
@ CHECK: @ fixup A - offset: 0, value: _bar, kind: fixup_arm_uncondbranch
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ BLX (register)
|
||||
@------------------------------------------------------------------------------
|
||||
blx r2
|
||||
blxne r2
|
||||
|
||||
@ CHECK: bl _bar @ encoding: [A,A,A,0xeb]
|
||||
@ CHECK: @ fixup A - offset: 0, value: _bar, kind: fixup_arm_uncondbranch
|
||||
@ CHECK: blx r2 @ encoding: [0x32,0xff,0x2f,0xe1]
|
||||
@ CHECK: blxne r2 @ encoding: [0x32,0xff,0x2f,0x11]
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ BX
|
||||
@------------------------------------------------------------------------------
|
||||
|
||||
bx r2
|
||||
bxne r2
|
||||
|
||||
@ CHECK: bx r2 @ encoding: [0x12,0xff,0x2f,0xe1]
|
||||
@ CHECK: bxne r2 @ encoding: [0x12,0xff,0x2f,0x11]
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ BXJ
|
||||
@------------------------------------------------------------------------------
|
||||
|
||||
bxj r2
|
||||
bxjne r2
|
||||
|
||||
@ CHECK: bxj r2 @ encoding: [0x22,0xff,0x2f,0xe1]
|
||||
@ CHECK: bxjne r2 @ encoding: [0x22,0xff,0x2f,0x11]
|
||||
|
Loading…
Reference in New Issue
Block a user