1 ; RUN: llc -filetype=asm %s -o - -mtriple x86_64-pc-windows-msvc | FileCheck %s
2 ; RUN: llc -filetype=obj %s -o %t -mtriple x86_64-pc-windows-msvc
3 ; RUN: llvm-readobj --cg-profile %t | FileCheck %s --check-prefix=OBJ
12 define void @freq(i1 %cond) {
13 br i1 %cond, label %A, label %B
22 !llvm.module.flags = !{!0}
24 !0 = !{i32 5, !"CG Profile", !1}
25 !1 = !{!2, !3, !4, !5}
26 !2 = !{ptr @a, ptr @b, i64 32}
27 !3 = !{ptr @freq, ptr @a, i64 11}
28 !4 = !{ptr @freq, ptr @b, i64 20}
29 !5 = !{ptr @freq, null, i64 20}
31 ; CHECK: .cg_profile a, b, 32
32 ; CHECK: .cg_profile freq, a, 11
33 ; CHECK: .cg_profile freq, b, 20
36 ; OBJ: CGProfileEntry {
41 ; OBJ: CGProfileEntry {
46 ; OBJ: CGProfileEntry {