Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf-non-mergeable.s
blob2e3cbe8e04bce2da39d2cb53c81480f0d1c2e42a
1 // REQUIRES: x86
3 // This file contains two functions. They are themselves identical,
4 // but because they have relocations against different data sections,
5 // they are not mergeable.
7 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1
8 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \
9 // RUN: %p/Inputs/icf-non-mergeable.s -o %t2
11 // RUN: ld.lld %t1 %t2 -o /dev/null --icf=all --print-icf-sections | count 0
13 .globl _start, f1, f2, d1, d2
14 _start:
15 ret
17 .section .text.f1, "ax"
18 f1:
19 movl $5, d1
20 ret
22 .section .text.f2, "ax"
23 f2:
24 movl $5, d2
25 ret