1 # RUN: llc -run-pass none -o - %s | FileCheck %s
2 # This test ensures that the LLVM IR that's embedded with MIR is parsed
6 ; CHECK: define i32 @foo(i32 %x, i32 %y)
7 ; CHECK: %z = alloca i32, align 4
8 ; CHECK: store i32 %x, i32* %z, align 4
9 ; CHECK: br label %Test
11 ; CHECK: %m = load i32, i32* %z, align 4
12 ; CHECK: %cond = icmp eq i32 %y, %m
13 ; CHECK: br i1 %cond, label %IfEqual, label %IfUnequal
18 define i32 @foo(i32 %x, i32 %y) {
19 %z = alloca i32, align 4
20 store i32 %x, i32* %z, align 4
23 %m = load i32, i32* %z, align 4
24 %cond = icmp eq i32 %y, %m
25 br i1 %cond, label %IfEqual, label %IfUnequal