[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / icf1.s
blob9682b06f4606f0cc34d7b9adf6c59292b7fd9ad1
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 --crel %s -o %t
7 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s
9 # CHECK: selected section {{.*}}:(.text.f1)
10 # CHECK: removing identical section {{.*}}:(.text.f2)
12 .globl _start, f1, f2
13 _start:
14 ret
16 .section .text.f1, "ax"
17 f1:
18 mov $60, %rax
19 mov $42, %rdi
20 syscall
22 .section .text.f2, "ax"
23 f2:
24 mov $60, %rax
25 mov $42, %rdi
26 syscall