Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf3.s
blob3636dee87bcf62c8030d248d3f838ede3dc4ddb1
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/icf2.s -o %t2
5 # RUN: ld.lld %t1 %t2 -o /dev/null --icf=all --print-icf-sections | count 0
7 .globl _start, f1, f2
8 _start:
9 ret
11 # This section is not mergeable because the content is different from f2.
12 .section .text.f1, "ax"
13 f1:
14 mov $60, %rdi
15 call f2
16 mov $0, %rax