2 // RUN
: llvm-mc
-triple armv7-unknown-gnu
-arm-add-build-attributes
-filetype
=obj
-o
%t %s
3 // RUN
: ld.lld
%t %S
/Inputs
/arm-long-thunk-converge.lds
-o
%t2
4 // RUN
: llvm-objdump
--no-print-imm-hex
-d
--start-address
=0x00000000 --stop-address
=0x00000010 --triple
=armv7a-linux-gnueabihf
%t2 | FileCheck
--check-prefix
=CHECK1
%s
5 // RUN
: llvm-objdump
--no-print-imm-hex
-d
--start-address
=0x02000000 --stop-address
=0x02000010 --triple
=armv7a-linux-gnueabihf
%t2 | FileCheck
--check-prefix
=CHECK2
%s
8 // CHECK1
: <__ARMv7ABSLongThunk_bar
>:
9 // CHECK1-NEXT
: 0: e300c00c movw
r12, #12
10 // CHECK1-NEXT
: 4: e340c200 movt
r12, #512
11 // CHECK1-NEXT
: 8: e12fff1c bx
r12
13 // CHECK1-NEXT
: c
: ebfffffb
bl 0x0 <__ARMv7ABSLongThunk_bar
>
15 .section .foo,"ax",%progbits,unique,1
19 // CHECK2
: <__ARMv7ABSLongThunk_foo
>:
20 // CHECK2-NEXT
: 2000000: e300c00c movw
r12, #12
21 // CHECK2-NEXT
: 2000004: e340c000 movt
r12, #0
22 // CHECK2-NEXT
: 2000008: e12fff1c bx
r12
24 // CHECK2-NEXT
: 200000c
: ebfffffb
bl 0x2000000 <__ARMv7ABSLongThunk_foo
>
26 .section .bar,"ax",%progbits,unique,1