brintos

brintos / llvm-project-archived public Read only

0
0
Text · 740 B · 4344c30 Raw
31 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4# RUN: ld.lld %t -o %t2 --Ttext=220000 --icf=all --print-icf-sections | FileCheck %s5# RUN: llvm-objdump -t %t2 | FileCheck --check-prefix=ALIGN %s6 7# CHECK: selected section {{.*}}:(.text.f1)8# CHECK:   removing identical section {{.*}}:(.text.f2)9 10## Check that the selected section has the higher alignment of the two identical sections.11# ALIGN: 0000000000220000 g .text 0000000000000000 _start12# ALIGN: 0000000000220100 g .text 0000000000000000 f113 14.globl _start, f1, f215_start:16  ret17 18.section .text.f1, "ax"19  .align 120f1:21  mov $60, %rax22  mov $42, %rdi23  syscall24 25.section .text.f2, "ax"26  .align 25627f2:28  mov $60, %rax29  mov $42, %rdi30  syscall31