brintos

brintos / llvm-project-archived public Read only

0
0
Text · 583 B · 2e3cbe8 Raw
26 lines · plain
1// REQUIRES: x862 3// This file contains two functions. They are themselves identical,4// but because they have relocations against different data sections,5// they are not mergeable.6 7// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t18// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \9// RUN:    %p/Inputs/icf-non-mergeable.s -o %t210 11// RUN: ld.lld %t1 %t2 -o /dev/null --icf=all --print-icf-sections | count 012 13.globl _start, f1, f2, d1, d214_start:15  ret16 17.section .text.f1, "ax"18f1:19  movl $5, d120  ret21 22.section .text.f2, "ax"23f2:24  movl $5, d225  ret26