Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / lto / symbol-ordering-function.s
blobb2e8a4d2abb71273d37bfa7d171eedc30a4b134d
1 # REQUIRES: x86
3 ## Test we enable function sections for LTO so --symbol-ordering-fils is respected
4 ## for function symbols.
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-scei-ps4 %s -o %t.o
7 # RUN: llvm-as %p/Inputs/symbol-ordering-lto.ll -o %t.bc
9 # RUN: echo "tin " > %t_order_lto.txt
10 # RUN: echo "_start " >> %t_order_lto.txt
11 # RUN: echo "pat " >> %t_order_lto.txt
13 # RUN: ld.lld --symbol-ordering-file %t_order_lto.txt %t.o %t.bc -o %t
14 # RUN: llvm-nm -v %t | FileCheck %s
16 # CHECK: T tin
17 # CHECK-NEXT: T _start
18 # CHECK-NEXT: T pat
20 .globl _start
21 _start:
22 call pat
23 call tin