1 # RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
2 # This test ensures an error is reported if the embedded LLVM IR contains an
7 ; CHECK: [[@LINE+3]]:15: use of undefined value '%a'
8 define i32 @foo(i32 %x, i32 %y) {
9 %z = alloca i32, align 4
10 store i32 %a, i32* %z, align 4
13 %m = load i32, i32* %z, align 4
14 %cond = icmp eq i32 %y, %m
15 br i1 %cond, label %IfEqual, label %IfUnequal