1# REQUIRES: x86 2# This test is to make sure that we can handle implicit addends properly. 3 4# RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t 5# RUN: ld.lld %t -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck %s 6 7# CHECK: selected section {{.*}}:(.text.f1) 8# CHECK: removing identical section {{.*}}:(.text.f2) 9# CHECK-NOT: removing identical section {{.*}}:(.text.f3) 10 11.globl _start, f1, f2, f3 12_start: 13 ret 14 15.section .text.f1, "ax" 16f1: 17 movl $42, 4(%edi) 18 19.section .text.f2, "ax" 20f2: 21 movl $42, 4(%edi) 22 23.section .text.f3, "ax" 24f3: 25 movl $42, 8(%edi) 26