3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
5 # RUN: echo "A B 100" > %t.call_graph
6 # RUN: echo "A C 40" >> %t.call_graph
7 # RUN: echo "C D 61" >> %t.call_graph
8 # RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph --call-graph-profile-sort=hfsort -o %t.out -icf=all
9 # RUN: llvm-readobj --symbols %t.out | FileCheck %s
10 # RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph --call-graph-profile-sort=hfsort -o %t2.out
11 # RUN: llvm-readobj --symbols %t2.out | FileCheck %s --check-prefix=NOICF
13 .section .text.D,"ax",@progbits
19 .section .text.C,"ax",@progbits
25 .section .text.B,"ax",@progbits
31 .section .text.A,"ax",@progbits
38 # CHECK-NEXT: Value: 0x201128
40 # CHECK-NEXT: Value: 0x201128
42 # CHECK-NEXT: Value: 0x201130
44 # CHECK-NEXT: Value: 0x201120
47 # NOICF-NEXT: Value: 0x201138
49 # NOICF-NEXT: Value: 0x201130
51 # NOICF-NEXT: Value: 0x201128
53 # NOICF-NEXT: Value: 0x201120