59 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld -e A %t.o -o %t5# RUN: llvm-nm --no-sort %t | FileCheck %s --check-prefix=CG-OBJ6# RUN: ld.lld --call-graph-profile-sort=none -e A %t.o -o %t7# RUN: llvm-nm --no-sort %t | FileCheck %s --check-prefix=NO-CG8## --no-call-graph-profile-sort is an alias for --call-graph-profile-sort=none.9# RUN: ld.lld --no-call-graph-profile-sort -e A %t.o -o %t110# RUN: cmp %t %t111# RUN: echo "D A 200" > %t.call_graph12# RUN: ld.lld -e A %t.o -call-graph-ordering-file=%t.call_graph -o %t213# RUN: llvm-nm --no-sort %t2 | FileCheck %s --check-prefix=CG-OBJ-OF14 15 .section .text.D,"ax",@progbits16D:17 retq18 19 .section .text.C,"ax",@progbits20 .globl C21C:22 retq23 24 .section .text.B,"ax",@progbits25 .globl B26B:27 retq28 29 .section .text.A,"ax",@progbits30 .globl A31A:32Aa:33 retq34 35 .cg_profile A, B, 1036 .cg_profile A, B, 1037 .cg_profile Aa, B, 8038 .cg_profile A, C, 4039 .cg_profile B, C, 3040 .cg_profile C, D, 9041 42# CG-OBJ: 0000000000201123 t D43# CG-OBJ-NEXT: 0000000000201120 t Aa44# CG-OBJ-NEXT: 0000000000201122 T C45# CG-OBJ-NEXT: 0000000000201121 T B46# CG-OBJ-NEXT: 0000000000201120 T A47 48# NO-CG: 0000000000201120 t D49# NO-CG-NEXT: 0000000000201123 t Aa50# NO-CG-NEXT: 0000000000201121 T C51# NO-CG-NEXT: 0000000000201122 T B52# NO-CG-NEXT: 0000000000201123 T A53 54# CG-OBJ-OF: 0000000000201120 t D55# CG-OBJ-OF-NEXT: 0000000000201121 t Aa56# CG-OBJ-OF-NEXT: 0000000000201124 T C57# CG-OBJ-OF-NEXT: 0000000000201125 T B58# CG-OBJ-OF-NEXT: 0000000000201121 T A59