aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/MC/ARM/basic-arm-instructions.s26
1 files changed, 24 insertions, 2 deletions
diff --git a/test/MC/ARM/basic-arm-instructions.s b/test/MC/ARM/basic-arm-instructions.s
index 7cf0489..6c1b39d 100644
--- a/test/MC/ARM/basic-arm-instructions.s
+++ b/test/MC/ARM/basic-arm-instructions.s
@@ -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]