Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / dummy-eh-frame-bug.s
blob2d05cf3d88d785599dc226fd281c474fa31c9b62
1 # REQUIRES: system-linux
3 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t.exe -q
5 # RUN: llvm-bolt %t.exe -o %t.bolt.exe --funcs=nocfi_function
6 # RUN: llvm-readelf --section-headers %t.bolt.exe | FileCheck %s
8 ## Check that llvm-bolt does not allocate unmarked space for original .eh_frame
9 ## after .text when no update is needed to .eh_frame.
11 # CHECK: {{ .text}} PROGBITS [[#%x,ADDR:]] [[#%x,OFFSET:]] [[#%x,SIZE:]]
12 # CHECK-NEXT: 0000000000000000 [[#%x, OFFSET + SIZE]]
14 .text
15 .globl nocfi_function
16 .type nocfi_function,@function
17 nocfi_function:
18 ret
19 .size nocfi_function, .-nocfi_function
21 .globl _start
22 .type _start,@function
23 _start:
24 .cfi_startproc
25 call nocfi_function
26 .size _start, .-_start
27 .cfi_endproc