1 ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
3 define i32 @bad1() !prof !0 {
8 ; CHECK: assembly parsed, but does not verify as correct!
9 ; CHECK-NEXT: expected string with name of the !prof annotation
10 ; CHECK-NEXT: !0 = !{i32 123, i32 3}
12 define i32 @bad2() !prof !1 {
16 !1 = !{!"function_entry_count"}
17 ; CHECK-NEXT: !prof annotations should have no less than 2 operands
18 ; CHECK-NEXT: !1 = !{!"function_entry_count"}
21 define i32 @bad3() !prof !2 {
25 !2 = !{!"some_other_count", i64 200}
26 ; CHECK-NEXT: first operand should be 'function_entry_count'
27 ; CHECK-NEXT: !2 = !{!"some_other_count", i64 200}
29 define i32 @bad4() !prof !3 {
33 !3 = !{!"function_entry_count", !"string"}
34 ; CHECK-NEXT: expected integer argument to function_entry_count
35 ; CHECK-NEXT: !3 = !{!"function_entry_count", !"string"}