brintos

brintos / llvm-project-archived public Read only

0
0
Text · 734 B · ff926d0 Raw
26 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=i686 %s -o %t.o4# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s -o %t.o6# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s7 8# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o --crel9# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s10 11# Checks that ICF does not merge 2 sections the offset of12# the relocations of which differ.13 14# CHECK-NOT: selected15 16.section .text.orig,"ax"17  .quad -118 19.section .text.foo,"ax"20  .quad -121  .reloc 0, BFD_RELOC_NONE, 022 23.section .text.bar,"ax"24  .quad -125  .reloc 1, BFD_RELOC_NONE, 026