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 [ (0x40)
37 # CHECK-NEXT: SHF_INFO_LINK
39 # CHECK-NEXT: Address: 0x0
40 # CHECK-NEXT: Offset: 0x140
41 # CHECK-NEXT: Size: 128
44 # CHECK-NEXT: AddressAlignment: 8
45 # CHECK-NEXT: EntrySize: 16
46 # CHECK-NEXT: SectionData (
47 # CHECK-NEXT: 0000: 00000000 00000000 00000000 02000000
48 # CHECK-NEXT: 0010: 00000000 00000000 00000000 05000000
49 # CHECK-NEXT: 0020: 08000000 00000000 00000000 07000000
50 # CHECK-NEXT: 0030: 08000000 00000000 00000000 02000000
51 # CHECK-NEXT: 0040: 10000000 00000000 00000000 06000000
52 # CHECK-NEXT: 0050: 10000000 00000000 00000000 03000000
53 # CHECK-NEXT: 0060: 18000000 00000000 00000000 01000000
54 # CHECK-NEXT: 0070: 18000000 00000000 00000000 05000000
61 # CHECK-NEXT: Binding: Local
64 # CHECK-NEXT: Section: .test
68 # CHECK-NEXT: Binding: Local
71 # CHECK-NEXT: Section: .test
75 # CHECK-NEXT: Binding: Local
78 # CHECK-NEXT: Section: .test
82 # CHECK-NEXT: Binding: Global
85 # CHECK-NEXT: Section: Undefined
89 # CHECK-NEXT: Binding: Global
92 # CHECK-NEXT: Section: .test
96 # CHECK-NEXT: Binding: Global
99 # CHECK-NEXT: Section: Undefined
101 # CHECK-NEXT: CGProfileEntry {
102 # CHECK-NEXT: From: a
104 # CHECK-NEXT: Weight: 32
106 # CHECK-NEXT: CGProfileEntry {
107 # CHECK-NEXT: From: freq
109 # CHECK-NEXT: Weight: 11
111 # CHECK-NEXT: CGProfileEntry {
112 # CHECK-NEXT: From: late
113 # CHECK-NEXT: To: late2
114 # CHECK-NEXT: Weight: 20
116 # CHECK-NEXT: CGProfileEntry {
119 # CHECK-NEXT: Weight: 42