1 // RUN
: llvm-mc
%s
-triple
=thumbv7-linux-gnueabi \
2 // RUN
: -filetype
=obj
-o
- | llvm-readobj
-S
--sd
-r
--symbols | \
5 // We want to test relocatable thumb function call.
23 // make sure that
bl 0 <foo
> (fff7feff
) is correctly encoded
25 // CHECK
: SectionData
(
26 // CHECK
: 0000: 704780B5 FFF7FEFF
80BD
30 // CHECK
: Relocations
[
31 // CHECK-NEXT
: Section
{{.*}} .rel.text {
32 // CHECK-NEXT
: 0x4 R_ARM_THM_CALL foo
0x0
34 // CHECK-NEXT
: Section
{{.*}} .rel.ARM.exidx {
35 // CHECK-NEXT
: 0x0 R_ARM_PREL31
.text 0x0
36 // CHECK-NEXT
: 0x8 R_ARM_PREL31
.text 0x0
40 // make sure foo is thumb function
: bit
0 = 1
44 // CHECK-NEXT
: Value
: 0x1