Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf1.s
blob5c6e667d53c78c92088389708a9adac099eb9a55
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s
6 # CHECK: selected section {{.*}}:(.text.f1)
7 # CHECK: removing identical section {{.*}}:(.text.f2)
9 .globl _start, f1, f2
10 _start:
11 ret
13 .section .text.f1, "ax"
14 f1:
15 mov $60, %rax
16 mov $42, %rdi
17 syscall
19 .section .text.f2, "ax"
20 f2:
21 mov $60, %rax
22 mov $42, %rdi
23 syscall