1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdefine i32 @bad1() !prof !0 { 4*9880d681SAndroid Build Coastguard Worker ret i32 0 5*9880d681SAndroid Build Coastguard Worker} 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker!0 = !{i32 123, i32 3} 8*9880d681SAndroid Build Coastguard Worker; CHECK: assembly parsed, but does not verify as correct! 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: expected string with name of the !prof annotation 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !0 = !{i32 123, i32 3} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerdefine i32 @bad2() !prof !1 { 13*9880d681SAndroid Build Coastguard Worker ret i32 0 14*9880d681SAndroid Build Coastguard Worker} 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker!1 = !{!"function_entry_count"} 17*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !prof annotations should have exactly 2 operands 18*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !1 = !{!"function_entry_count"} 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerdefine i32 @bad3() !prof !2 { 22*9880d681SAndroid Build Coastguard Worker ret i32 0 23*9880d681SAndroid Build Coastguard Worker} 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Worker!2 = !{!"some_other_count", i64 200} 26*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: first operand should be 'function_entry_count' 27*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !2 = !{!"some_other_count", i64 200} 28*9880d681SAndroid Build Coastguard Worker 29*9880d681SAndroid Build Coastguard Workerdefine i32 @bad4() !prof !3 { 30*9880d681SAndroid Build Coastguard Worker ret i32 0 31*9880d681SAndroid Build Coastguard Worker} 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Worker!3 = !{!"function_entry_count", !"string"} 34*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: expected integer argument to function_entry_count 35*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !3 = !{!"function_entry_count", !"string"} 36