brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · c16aa2e Raw
56 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %s -o %t4# RUN: lld-link /subsystem:console /entry:A %t /out:%t2 /debug:symtab5# RUN: llvm-nm --numeric-sort %t2 | FileCheck %s --check-prefix=CG-OBJ6# RUN: lld-link /call-graph-profile-sort:no /subsystem:console /entry:A %t /out:%t3 /debug:symtab7# RUN: llvm-nm --numeric-sort %t3 | FileCheck %s --check-prefix=NO-CG8# RUN: echo "D A 200" > %t.call_graph9# RUN: lld-link /subsystem:console /entry:A %t /out:%t4 /debug:symtab /call-graph-ordering-file:%t.call_graph10# RUN: llvm-nm --numeric-sort %t4 | FileCheck %s --check-prefix=CG-OBJ-OF11 12    .section    .text,"ax", one_only, D13D:14 retq15 16    .section    .text,"ax", one_only, C17    .globl  C18C:19 retq20 21    .section    .text,"ax", one_only, B22    .globl  B23B:24 retq25 26    .section    .text,"ax", one_only, A27    .globl  A28A:29Aa:30 retq31 32    .cg_profile A, B, 1033    .cg_profile A, B, 1034    .cg_profile Aa, B, 8035    .cg_profile A, C, 4036    .cg_profile B, C, 3037    .cg_profile C, D, 9038 39# CG-OBJ:      140001000 T A40# CG-OBJ-NEXT: 140001000 t Aa41# CG-OBJ-NEXT: 140001001 T B42# CG-OBJ-NEXT: 140001002 T C43# CG-OBJ-NEXT: 140001003 t D44 45# NO-CG:      140001000 t D46# NO-CG-NEXT: 140001001 T C47# NO-CG-NEXT: 140001002 T B48# NO-CG-NEXT: 140001003 T A49# NO-CG-NEXT: 140001003 t Aa50 51# CG-OBJ-OF:      140001000 t D52# CG-OBJ-OF-NEXT: 140001001 T A53# CG-OBJ-OF-NEXT: 140001001 t Aa54# CG-OBJ-OF-NEXT: 140001004 T C55# CG-OBJ-OF-NEXT: 140001005 T B56