aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ARM/thumb-branches.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/thumb-branches.s')
-rw-r--r--test/MC/ARM/thumb-branches.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb-branches.s b/test/MC/ARM/thumb-branches.s
new file mode 100644
index 000000000000..b4cdfa12a556
--- /dev/null
+++ b/test/MC/ARM/thumb-branches.s
@@ -0,0 +1,25 @@
+@ RUN: llvm-mc < %s -triple thumbv5-linux-gnueabi -filetype=obj -o - \
+@ RUN: | llvm-readobj -r | FileCheck %s
+
+
+ bl end
+ .space 0x3fffff
+end:
+
+ bl end2
+ .space 0x3fffff
+ .global end2
+end2:
+
+ bl end3
+ .space 0x400000
+ .global end3
+end3:
+
+ bl end4
+ .space 0x400000
+end4:
+
+@ CHECK: 0x400003 R_ARM_THM_CALL end2 0x0
+@ CHECK: 0x800006 R_ARM_THM_CALL end3 0x0
+@ CHECK: 0xC0000A R_ARM_THM_CALL end4 0x0