23 lines · plain
1# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures an error is reported if the embedded LLVM IR contains an3# error.4 5--- |6 7 ; CHECK: [[@LINE+3]]:15: use of undefined value '%a'8 define i32 @foo(i32 %x, i32 %y) {9 %z = alloca i32, align 410 store i32 %a, ptr %z, align 411 br label %Test12 Test:13 %m = load i32, ptr %z, align 414 %cond = icmp eq i32 %y, %m15 br i1 %cond, label %IfEqual, label %IfUnequal16 IfEqual:17 ret i32 118 IfUnequal:19 ret i32 020 }21 22...23