1 ; RUN: llc -filetype=asm %s -o - -mtriple x86_64-pc-linux-gnu | FileCheck %s
2 ; RUN: llc -filetype=obj %s -o %t -mtriple x86_64-pc-linux-gnu
3 ; RUN: llvm-readobj --elf-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 = !{void ()* @a, void ()* @b, i64 32}
27 !3 = !{void (i1)* @freq, void ()* @a, i64 11}
28 !4 = !{void (i1)* @freq, void ()* @b, i64 20}
29 !5 = !{void (i1)* @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 {