[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / icf-i386.s
blob67c7262dadde895b5d7cbda91f8c8821e2251238
1 # REQUIRES: x86
2 # This test is to make sure that we can handle implicit addends properly.
4 # RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t
5 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck %s
7 # CHECK: selected section {{.*}}:(.text.f1)
8 # CHECK: removing identical section {{.*}}:(.text.f2)
9 # CHECK-NOT: removing identical section {{.*}}:(.text.f3)
11 .globl _start, f1, f2, f3
12 _start:
13 ret
15 .section .text.f1, "ax"
16 f1:
17 movl $42, 4(%edi)
19 .section .text.f2, "ax"
20 f2:
21 movl $42, 4(%edi)
23 .section .text.f3, "ax"
24 f3:
25 movl $42, 8(%edi)