1@ RUN: llvm-mc < %s -triple thumbv5-linux-gnueabi -filetype=obj -o - \
2@ RUN:   | llvm-readobj -r | FileCheck %s
3
4
5        bl      end
6        .space 0x3fffff
7end:
8
9        bl      end2
10        .space 0x3fffff
11        .global end2
12end2:
13
14        bl      end3
15        .space 0x400000
16        .global end3
17end3:
18
19        bl      end4
20        .space 0x400000
21end4:
22
23@ CHECK: 0x400003 R_ARM_THM_CALL end2 0x0
24@ CHECK: 0x800006 R_ARM_THM_CALL end3 0x0
25@ CHECK: 0xC0000A R_ARM_THM_CALL end4 0x0
26