brintos

brintos / llvm-project-archived public Read only

0
0
Text · 832 B · 584b2ec Raw
42 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t && split-file %s %t && cd %t4# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o5 6# RUN: ld.lld -e A a.o --symbol-ordering-file=order --call-graph-profile-sort=hfsort -o out7# RUN: llvm-nm --numeric-sort out | FileCheck %s8# RUN: ld.lld -e A a.o --call-graph-profile-sort=hfsort -o out19# RUN: llvm-nm --numeric-sort out1 | FileCheck %s --check-prefix=ONLY-CG10 11#--- order12B13A14 15#--- a.s16.section .text.D,"ax"; .globl D; D:17  retq18 19.section .text.C,"ax"; .globl C; C:20  call D21 22.section .text.B,"ax"; .globl B; B:23  retq24 25.section .text.A,"ax"; .globl A; A:26  call B27  call C28 29.cg_profile A, B, 10030.cg_profile A, C,  4031.cg_profile C, D,  6132 33# CHECK:      T B34# CHECK-NEXT: T A35# CHECK-NEXT: T C36# CHECK-NEXT: T D37 38# ONLY-CG:      T A39# ONLY-CG-NEXT: T B40# ONLY-CG-NEXT: T C41# ONLY-CG-NEXT: T D42