1 ; RUN: llc -mtriple=mipsel -O0 -relocation-model=pic < %s | FileCheck %s
3 ; Function Attrs: nounwind
6 %retval = alloca i32, align 4
7 %i = alloca i32, align 4
8 store i32 0, ptr %retval
9 store i32 0, ptr %i, align 4
12 for.cond: ; preds = %for.inc, %entry
13 %0 = load i32, ptr %i, align 4
14 %cmp = icmp slt i32 %0, 10
15 br i1 %cmp, label %for.body, label %for.end
17 for.body: ; preds = %for.cond
22 for.inc: ; preds = %for.body
23 %1 = load i32, ptr %i, align 4
24 %inc = add nsw i32 %1, 1
25 store i32 %inc, ptr %i, align 4
28 for.end: ; preds = %for.cond
29 %2 = load i32, ptr %retval
33 declare void @foo(...)