brintos

brintos / llvm-project-archived public Read only

0
0
Text · 883 B · b3bd3c2 Raw
36 lines · plain
1; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s2 3define i32 @bad1() !prof !0 {4  ret i32 05}6 7!0 = !{i32 123, i32 3}8; CHECK: assembly parsed, but does not verify as correct!9; CHECK-NEXT: expected string with name of the !prof annotation10; CHECK-NEXT: !0 = !{i32 123, i32 3}11 12define i32 @bad2() !prof !1 {13  ret i32 014}15 16!1 = !{!"function_entry_count"}17; CHECK-NEXT: !prof annotations should have no less than 2 operands18; CHECK-NEXT: !1 = !{!"function_entry_count"}19 20 21define i32 @bad3() !prof !2 {22  ret i32 023}24 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}28 29define i32 @bad4() !prof !3 {30  ret i32 031}32 33!3 = !{!"function_entry_count", !"string"}34; CHECK-NEXT: expected integer argument to function_entry_count35; CHECK-NEXT: !3 = !{!"function_entry_count", !"string"}36