Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / MachO / cgprofile.s
blob6d356b3103cb0a18aa0f5d2d13b3af9067b51eb5
1 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t
2 # RUN: llvm-readobj -S --symbols --sd --cg-profile %t | FileCheck %s
4 .section __TEXT,__text
5 a:
7 .cg_profile a, b, 32
8 .cg_profile freq, a, 11
9 .cg_profile late, late2, 20
10 .cg_profile L.local, b, 42
12 .globl late
13 late:
14 late2: .word 0
15 late3:
16 L.local:
19 # CHECK: Name: __cg_profile
20 # CHECK-NEXT: Segment: __LLVM
21 # CHECK-NEXT: Address:
22 # CHECK-NEXT: Size: 0x30
23 # CHECK: SectionData (
24 # CHECK-NEXT: 0000: 00000000 04000000 20000000 00000000
25 # CHECK-NEXT: 0010: 05000000 00000000 0B000000 00000000
26 # CHECK-NEXT: 0020: 03000000 01000000 14000000 00000000
27 # CHECK-NEXT: )
29 # CHECK: CGProfile [
30 # CHECK-NEXT: CGProfileEntry {
31 # CHECK-NEXT: From: a (0)
32 # CHECK-NEXT: To: b (4)
33 # CHECK-NEXT: Weight: 32
34 # CHECK-NEXT: }
35 # CHECK-NEXT: CGProfileEntry {
36 # CHECK-NEXT: From: freq (5)
37 # CHECK-NEXT: To: a (0)
38 # CHECK-NEXT: Weight: 11
39 # CHECK-NEXT: }
40 # CHECK-NEXT: CGProfileEntry {
41 # CHECK-NEXT: From: late (3)
42 # CHECK-NEXT: To: late2 (1)
43 # CHECK-NEXT: Weight: 20
44 # CHECK-NEXT: }
45 # CHECK-NEXT: ]