[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / icf-ineligible.s
blobbc63f9f35beb547278e2a2649682b5d5cb9e7666
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: ld.lld %t.o -o /dev/null --keep-unique fu --icf=all --print-icf-sections | FileCheck %s
5 ## Check that ICF is able to merge equivalent sections with relocations to
6 ## different symbols, e.g. aliases, that refer to the same section which is
7 ## ineligible for ICF.
9 # CHECK: selected section {{.*}}:(.text.f1)
10 # CHECK: removing identical section {{.*}}:(.text.f2)
11 # CHECK: removing identical section {{.*}}:(.text.f3)
12 # CHECK: selected section {{.*}}:(.text.f4)
13 # CHECK: removing identical section {{.*}}:(.text.f5)
15 .globl d, d_alias, fu, f1, f2, f3, f4, f5
17 .section .data.d,"aw",@progbits
19 d_alias:
20 .long 42
22 .section .text.fu,"ax",@progbits
23 fu:
24 nop
26 .section .text.f1,"ax",@progbits
27 f1:
28 .quad d
30 .section .text.f2,"ax",@progbits
31 f2:
32 .quad d_alias
34 .section .text.f3,"ax",@progbits
35 f3:
36 .quad .data.d
38 .section .text.f4,"ax",@progbits
39 f4:
40 .quad fu
42 .section .text.f5,"ax",@progbits
43 f5:
44 .quad .text.fu