Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / cgprofile-print.s
blob9435891695c9d0e3750718c36eed7c3aa35db1c5
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t
4 # RUN: %lld -e A %t -o %t2 --print-symbol-order=%t3
5 # RUN: FileCheck %s --input-file %t3
7 # CHECK: B
8 # CHECK-NEXT: C
9 # CHECK-NEXT: D
10 # CHECK-NEXT: A
12 .text
13 .globl A
15 nop
17 .globl B
19 nop
21 .globl C
23 nop
25 .globl D
27 nop
29 .subsections_via_symbols
31 .cg_profile A, B, 5
32 .cg_profile B, C, 50
33 .cg_profile C, D, 40
34 .cg_profile D, B, 10