Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf10.s
blob3c18c431c3b9daefc74c58006300024d1ff77236
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=i686 %s -o %t.o
4 # RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s -o %t.o
6 # RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
8 # Checks that ICF does not merge 2 sections the offset of
9 # the relocations of which differ.
11 # CHECK-NOT: selected
13 .section .text.orig,"ax"
14 .quad -1
16 .section .text.foo,"ax"
17 .quad -1
18 .reloc 0, BFD_RELOC_NONE, 0
20 .section .text.bar,"ax"
21 .quad -1
22 .reloc 1, BFD_RELOC_NONE, 0