blob: 1eaf7dbe8b8c8c359b4ceb5a08be0d2120926c10 [file] [log] [blame]
Stefan Gränitzc42c67a2021-03-30 11:57:38 +02001; RUN: %lli -jit-kind=mcjit %s > /dev/null
Eric Christopher79cc1e32014-09-02 22:28:02 +00002; RUN: %lli %s > /dev/null
Danil Malyshev7c5db452012-05-17 21:07:47 +00003
4; Testcase distilled from 256.bzip2.
5
Danil Malyshev7c5db452012-05-17 21:07:47 +00006define i32 @main() {
7entry:
8 br label %loopentry.0
9loopentry.0: ; preds = %loopentry.0, %entry
10 %h.0 = phi i32 [ %tmp.2, %loopentry.0 ], [ -1, %entry ] ; <i32> [#uses=1]
11 %tmp.2 = add i32 %h.0, 1 ; <i32> [#uses=3]
12 %tmp.4 = icmp ne i32 %tmp.2, 0 ; <i1> [#uses=1]
13 br i1 %tmp.4, label %loopentry.0, label %loopentry.1
14loopentry.1: ; preds = %loopentry.0
15 %h.1 = phi i32 [ %tmp.2, %loopentry.0 ] ; <i32> [#uses=1]
16 ret i32 %h.1
17}
18