1 ; RUN: %lli -jit-kind=orc-mcjit %s > /dev/null
3 @count = global i32 1, align 4
5 define i32 @main() nounwind uwtable {
7 %retval = alloca i32, align 4
8 %i = alloca i32, align 4
9 store i32 0, i32* %retval
10 store i32 0, i32* %i, align 4
13 for.cond: ; preds = %for.inc, %entry
14 %0 = load i32, i32* %i, align 4
15 %cmp = icmp slt i32 %0, 49
16 br i1 %cmp, label %for.body, label %for.end
18 for.body: ; preds = %for.cond
19 %1 = load i32, i32* @count, align 4
20 %inc = add nsw i32 %1, 1
21 store i32 %inc, i32* @count, align 4
24 for.inc: ; preds = %for.body
25 %2 = load i32, i32* %i, align 4
26 %inc1 = add nsw i32 %2, 1
27 store i32 %inc1, i32* %i, align 4
30 for.end: ; preds = %for.cond
31 %3 = load i32, i32* @count, align 4
32 %sub = sub nsw i32 %3, 50