mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Testcases for ARM assembly BX/BXJ instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
898e7e26a5
commit
f333d471d2
@ -326,12 +326,34 @@ _func:
|
|||||||
bl _bar
|
bl _bar
|
||||||
@ FIXME: blx _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
|
blx r2
|
||||||
blxne 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: blx r2 @ encoding: [0x32,0xff,0x2f,0xe1]
|
||||||
@ CHECK: blxne r2 @ encoding: [0x32,0xff,0x2f,0x11]
|
@ 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…
x
Reference in New Issue
Block a user