Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / cgprofile-obj.s
blob97aaf2de8c18d2af18c8dc7fb98c1bf559862556
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
4 # RUN: %lld -lSystem -e A -o %t.out %t.o
5 # RUN: llvm-nm --numeric-sort %t.out | FileCheck %s
6 # RUN: %lld --no-call-graph-profile-sort -lSystem -e A -o %t.out %t.o
7 # RUN: llvm-nm --numeric-sort %t.out | FileCheck %s --check-prefix=NO-CG
9 .text
12 retq
13 .globl C
15 retq
16 .globl B
18 retq
19 .globl A
21 Aa:
22 retq
23 .subsections_via_symbols
27 .cg_profile A, B, 10
28 .cg_profile A, B, 10
29 .cg_profile Aa, B, 80
30 .cg_profile A, C, 40
31 .cg_profile B, C, 30
32 .cg_profile C, D, 90
34 # CHECK: 00000001000002c8 T A
35 # CHECK: 00000001000002c9 T B
36 # CHECK: 00000001000002ca T C
37 # CHECK: 00000001000002cb t D
39 # NO-CG: 00000001000002c8 t D
40 # NO-CG: 00000001000002c9 T C
41 # NO-CG: 00000001000002ca T B
42 # NO-CG: 00000001000002cb T A