Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / icf-merge2.s
blob47c4c88d449ac433f74d9fd50c2fb392c3de6225
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t --icf=all
5 # RUN: llvm-objdump -d %t | FileCheck %s
7 # Test that we don't merge these.
8 # CHECK: leaq
9 # CHECK: leaq
11 .section .merge1, "aM", @progbits, 8
12 .Lfoo:
13 .quad 42
15 .section .merge2, "aM", @progbits, 4
16 .Lbar:
17 .long 41
19 .section .text.foo, "ax", @progbits
20 leaq .Lfoo(%rip), %rax
22 .section .text.bar, "ax", @progbits
23 leaq .Lbar(%rip), %rax