annotate lld/test/ELF/icf-comdat.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
anatofuz
parents:
diff changeset
4 # RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections | FileCheck %s
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 # CHECK: selected section {{.*}}:(.text.f1)
anatofuz
parents:
diff changeset
7 # CHECK: removing identical section {{.*}}:(.text.f2)
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 .globl _start, f1, f2
anatofuz
parents:
diff changeset
10 _start:
anatofuz
parents:
diff changeset
11 ret
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 .section .text.f1,"ax"
anatofuz
parents:
diff changeset
14 f1:
anatofuz
parents:
diff changeset
15 mov $60, %rax
anatofuz
parents:
diff changeset
16 mov $42, %rdi
anatofuz
parents:
diff changeset
17 syscall
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 .section .text.f2,"axG",@progbits,foo,comdat
anatofuz
parents:
diff changeset
20 f2:
anatofuz
parents:
diff changeset
21 mov $60, %rax
anatofuz
parents:
diff changeset
22 mov $42, %rdi
anatofuz
parents:
diff changeset
23 syscall