Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / partition-thunk-reuse.s
blob6425bdf345b031702b90b5d28e7dd778cbe75565
1 // REQUIRES: arm
2 // RUN: llvm-mc %s -o %t.o -filetype=obj --triple=armv7-unknown-linux -arm-add-build-attributes
3 // RUN: ld.lld %t.o -o %t --export-dynamic --gc-sections
4 // RUN: llvm-nm %t | FileCheck %s
6 // CHECK: __Thumbv7ABSLongThunk__start
7 // CHECK: __Thumbv7ABSLongThunk__start
9 // CHECK: __Thumbv7ABSLongThunk_foo
10 // CHECK-NOT: __Thumbv7ABSLongThunk_foo
12 .thumb
14 .section .llvm_sympart.g1,"",%llvm_sympart
15 .asciz "part1"
16 .4byte f1
18 .section .llvm_sympart.g2,"",%llvm_sympart
19 .asciz "part2"
20 .4byte f2
22 .section .text._start,"ax",%progbits
23 .globl _start
24 _start:
25 bx lr
26 foo:
27 b f0
28 .zero 17*1048576
30 .section .text.f0,"ax",%progbits
31 .globl f0
32 f0:
33 b foo
35 .section .text.f1,"aw",%progbits
36 .globl f1
37 f1:
38 b _start
39 b foo
41 .section .text.f2,"ax",%progbits
42 .globl f2
43 f2:
44 b _start
45 b foo