[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / arm-long-thunk-converge.s
blobcfd8d1a346103aa1ab8c5378b629d801f70e8a3f
1 // REQUIRES: arm
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
6 // RUN: rm -f %t2
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
12 // CHECK1: <foo>:
13 // CHECK1-NEXT: c: ebfffffb bl 0x0 <__ARMv7ABSLongThunk_bar>
15 .section .foo,"ax",%progbits,unique,1
16 foo:
17 bl bar
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
23 // CHECK2: <bar>:
24 // CHECK2-NEXT: 200000c: ebfffffb bl 0x2000000 <__ARMv7ABSLongThunk_foo>
26 .section .bar,"ax",%progbits,unique,1
27 bar:
28 bl foo
29 .zero 0x1000000