1 # REQUIRES: x86-registered-target
2 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o %t
3 # RUN: llvm-readobj %t --cg-profile | FileCheck %s
6 # CHECK-NEXT: CGProfileEntry {
7 # CHECK-NEXT: From: a (10)
8 # CHECK-NEXT: To: b (11)
9 # CHECK-NEXT: Weight: 32
11 # CHECK-NEXT: CGProfileEntry {
12 # CHECK-NEXT: From: c (12)
13 # CHECK-NEXT: To: a (10)
14 # CHECK-NEXT: Weight: 11
16 # CHECK-NEXT: CGProfileEntry {
17 # CHECK-NEXT: From: d (13)
18 # CHECK-NEXT: To: e (14)
19 # CHECK-NEXT: Weight: 20
30 .section ".llvm.call-graph-profile"
31 .long 10 ## Symbol index of a.
32 .long 11 ## Symbol index of b.
33 .quad 32 ## Weight from a to b.
35 .long 12 ## Symbol index of c.
36 .long 10 ## Symbol index of a.
37 .quad 11 ## Weight from c to a.
39 .long 13 ## Symbol index of d.
40 .long 14 ## Symbol index of e.
41 .quad 20 ## Weight from d to e.