Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / section-end-sym.s
blobcf1723c2563ae366bf5393b1bbbc789ea6338e2a
1 ## Check that BOLT doesn't consider end-of-section symbols (e.g., _etext) as
2 ## functions.
4 # REQUIRES: x86_64-linux, asserts
6 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
7 # RUN: ld.lld %t.o -o %t.exe -q
8 # RUN: llvm-bolt %t.exe -o /dev/null --print-cfg --debug-only=bolt 2>&1 \
9 # RUN: | FileCheck %s
11 # CHECK: considering symbol etext for function
12 # CHECK-NEXT: rejecting as symbol points to end of its section
13 # CHECK-NOT: Binary Function "etext{{.*}}" after building cfg
16 .text
17 .globl _start
18 .type _start,@function
19 _start:
20 retq
21 .size _start, .-_start
23 .align 0x1000
24 .globl etext
25 etext:
27 .data
28 .Lfoo:
29 .word 0