1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd --cg-profile - | FileCheck %s
3 .section .test,"aw",@progbits
7 .cg_profile freq, a, 11
8 .cg_profile late, late2, 20
9 .cg_profile .L.local, b, 42
17 # CHECK: Name: .llvm.call-graph-profile
18 # CHECK-NEXT: Type: SHT_LLVM_CALL_GRAPH_PROFILE (0x6FFF4C09)
19 # CHECK-NEXT: Flags [ (0x80000000)
20 # CHECK-NEXT: SHF_EXCLUDE (0x80000000)
22 # CHECK-NEXT: Address:
24 # CHECK-NEXT: Size: 32
27 # CHECK-NEXT: AddressAlignment: 1
28 # CHECK-NEXT: EntrySize: 8
29 # CHECK-NEXT: SectionData (
30 # CHECK-NEXT: 0000: 20000000 00000000 0B000000 00000000
31 # CHECK-NEXT: 0010: 14000000 00000000 2A000000 00000000
34 # CHECK: Name: .rel.llvm.call-graph-profile (28)
35 # CHECK-NEXT: Type: SHT_REL (0x9)
36 # CHECK-NEXT: Flags [ (0x0)
38 # CHECK-NEXT: Address: 0x0
39 # CHECK-NEXT: Offset: 0x140
40 # CHECK-NEXT: Size: 128
43 # CHECK-NEXT: AddressAlignment: 8
44 # CHECK-NEXT: EntrySize: 16
45 # CHECK-NEXT: SectionData (
46 # CHECK-NEXT: 0000: 00000000 00000000 00000000 02000000
47 # CHECK-NEXT: 0010: 00000000 00000000 00000000 05000000
48 # CHECK-NEXT: 0020: 08000000 00000000 00000000 07000000
49 # CHECK-NEXT: 0030: 08000000 00000000 00000000 02000000
50 # CHECK-NEXT: 0040: 10000000 00000000 00000000 06000000
51 # CHECK-NEXT: 0050: 10000000 00000000 00000000 03000000
52 # CHECK-NEXT: 0060: 18000000 00000000 00000000 01000000
53 # CHECK-NEXT: 0070: 18000000 00000000 00000000 05000000
60 # CHECK-NEXT: Binding: Local
63 # CHECK-NEXT: Section: .test
67 # CHECK-NEXT: Binding: Local
70 # CHECK-NEXT: Section: .test
74 # CHECK-NEXT: Binding: Local
77 # CHECK-NEXT: Section: .test
81 # CHECK-NEXT: Binding: Global
84 # CHECK-NEXT: Section: Undefined
88 # CHECK-NEXT: Binding: Global
91 # CHECK-NEXT: Section: .test
95 # CHECK-NEXT: Binding: Global
98 # CHECK-NEXT: Section: Undefined
100 # CHECK-NEXT: CGProfileEntry {
101 # CHECK-NEXT: From: a
103 # CHECK-NEXT: Weight: 32
105 # CHECK-NEXT: CGProfileEntry {
106 # CHECK-NEXT: From: freq
108 # CHECK-NEXT: Weight: 11
110 # CHECK-NEXT: CGProfileEntry {
111 # CHECK-NEXT: From: late
112 # CHECK-NEXT: To: late2
113 # CHECK-NEXT: Weight: 20
115 # CHECK-NEXT: CGProfileEntry {
118 # CHECK-NEXT: Weight: 42