brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · e28630d Raw
54 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4 5# RUN: echo "A B 100" > %t.call_graph6# RUN: echo "A C 40" >> %t.call_graph7# RUN: echo "C D 61" >> %t.call_graph8# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph --call-graph-profile-sort=hfsort -o %t.out -icf=all9# RUN: llvm-readobj --symbols %t.out | FileCheck %s10# RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph --call-graph-profile-sort=hfsort -o %t2.out11# RUN: llvm-readobj --symbols %t2.out | FileCheck %s --check-prefix=NOICF12 13    .section    .text.D,"ax",@progbits14    .globl  D15D:16    mov $60, %rax17    retq18 19    .section    .text.C,"ax",@progbits20    .globl  C21C:22    mov $60, %rax23    retq24 25    .section    .text.B,"ax",@progbits26    .globl  B27B:28    mov $2, %rax29    retq30 31    .section    .text.A,"ax",@progbits32    .globl  A33A:34    mov $42, %rax35    retq36 37# CHECK:          Name: D38# CHECK-NEXT:     Value: 0x20112839# CHECK:          Name: C40# CHECK-NEXT:     Value: 0x20112841# CHECK:          Name: B42# CHECK-NEXT:     Value: 0x20113043# CHECK:          Name: A44# CHECK-NEXT:     Value: 0x20112045 46# NOICF:          Name: D47# NOICF-NEXT:     Value: 0x20113848# NOICF:          Name: C49# NOICF-NEXT:     Value: 0x20113050# NOICF:          Name: B51# NOICF-NEXT:     Value: 0x20112852# NOICF:          Name: A53# NOICF-NEXT:     Value: 0x20112054