1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S --symbols --sd --elf-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 (0x6FFF4C02)
19 # CHECK-NEXT: Flags [ (0x80000000)
20 # CHECK-NEXT: SHF_EXCLUDE (0x80000000)
22 # CHECK-NEXT: Address:
24 # CHECK-NEXT: Size: 64
27 # CHECK-NEXT: AddressAlignment: 1
28 # CHECK-NEXT: EntrySize: 16
29 # CHECK-NEXT: SectionData (
30 # CHECK-NEXT: 0000: 01000000 05000000 20000000 00000000
31 # CHECK-NEXT: 0010: 06000000 01000000 0B000000 00000000
32 # CHECK-NEXT: 0020: 07000000 02000000 14000000 00000000
33 # CHECK-NEXT: 0030: 04000000 05000000 2A000000 00000000
40 # CHECK-NEXT: Binding: Local
43 # CHECK-NEXT: Section: .test
47 # CHECK-NEXT: Binding: Local
50 # CHECK-NEXT: Section: .test
54 # CHECK-NEXT: Binding: Local
57 # CHECK-NEXT: Section: .test
61 # CHECK-NEXT: Binding: Global
64 # CHECK-NEXT: Section: Undefined
68 # CHECK-NEXT: Binding: Weak
71 # CHECK-NEXT: Section: Undefined
75 # CHECK-NEXT: Binding: Global
78 # CHECK-NEXT: Section: .test
80 # CHECK-NEXT: CGProfileEntry {
83 # CHECK-NEXT: Weight: 32
85 # CHECK-NEXT: CGProfileEntry {
86 # CHECK-NEXT: From: freq
88 # CHECK-NEXT: Weight: 11
90 # CHECK-NEXT: CGProfileEntry {
91 # CHECK-NEXT: From: late
92 # CHECK-NEXT: To: late2
93 # CHECK-NEXT: Weight: 20
95 # CHECK-NEXT: CGProfileEntry {
98 # CHECK-NEXT: Weight: 42