blob: 58d423f924418efebc76933ff6cdda21ae324692 [file] [log] [blame]
Danil Malyshevbb8cef52012-05-17 21:07:47 +00001; RUN: %lli -use-mcjit %s > /dev/null
2
3; Testcase distilled from 256.bzip2.
4
5target datalayout = "e-p:32:32"
6
7define i32 @main() {
8entry:
9 br label %loopentry.0
10loopentry.0: ; preds = %loopentry.0, %entry
11 %h.0 = phi i32 [ %tmp.2, %loopentry.0 ], [ -1, %entry ] ; <i32> [#uses=1]
12 %tmp.2 = add i32 %h.0, 1 ; <i32> [#uses=3]
13 %tmp.4 = icmp ne i32 %tmp.2, 0 ; <i1> [#uses=1]
14 br i1 %tmp.4, label %loopentry.0, label %loopentry.1
15loopentry.1: ; preds = %loopentry.0
16 %h.1 = phi i32 [ %tmp.2, %loopentry.0 ] ; <i32> [#uses=1]
17 ret i32 %h.1
18}
19