Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / arm-thumb-thunk-empty-pass.s
blobc07149c3685afe4bddbc15e4b55f7cb5caeec94c
1 // REQUIRES: arm
2 // RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t.o
3 // RUN: ld.lld %t.o -o %t
4 // RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck %s
5 .syntax unified
6 .global _start, foo
7 .type _start, %function
8 .section .text.start,"ax",%progbits
9 _start:
10 bl _start
11 .section .text.dummy1,"ax",%progbits
12 .space 0xfffffe
13 .section .text.foo,"ax",%progbits
14 .type foo, %function
15 foo:
16 bl _start
18 // CHECK: Disassembly of section .text:
19 // CHECK-EMPTY:
20 // CHECK-NEXT: <_start>:
21 // CHECK-NEXT: 200b4: f7ff fffe bl 0x200b4 <_start>
22 // CHECK: <__Thumbv7ABSLongThunk__start>:
23 // CHECK-NEXT: 200b8: f7ff bffc b.w 0x200b4 <_start>
25 // CHECK: <__Thumbv7ABSLongThunk__start>:
26 // CHECK: 10200bc: f240 0cb5 movw r12, #181
27 // CHECK-NEXT: 10200c0: f2c0 0c02 movt r12, #2
28 // CHECK-NEXT: 10200c4: 4760 bx r12
29 // CHECK: <foo>:
30 // CHECK-NEXT: 10200c6: f7ff fff9 bl 0x10200bc <__Thumbv7ABSLongThunk__start>