Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf-absolute2.s
blob5cf1d69bdecf8f923195bc2cc09baf7344a5007a
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute2.s -o %t2
5 # RUN: ld.lld %t %t2 -o /dev/null --icf=all --print-icf-sections | FileCheck -allow-empty %s
7 ## Test we do not crash and do not fold sections which relocations referring to
8 ## absolute symbols with a different values.
9 # CHECK-NOT: selected
11 .globl _start, f1, f2
12 _start:
13 ret
15 .section .text.f1, "ax"
16 f1:
17 .byte a1
19 .section .text.f2, "ax"
20 f2:
21 .byte a2