Stefan Gränitz | c42c67a | 2021-03-30 11:57:38 +0200 | [diff] [blame] | 1 | ; RUN: %lli -jit-kind=mcjit %s > /dev/null |
Eric Christopher | 79cc1e3 | 2014-09-02 22:28:02 +0000 | [diff] [blame] | 2 | ; RUN: %lli %s > /dev/null |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 3 | |
| 4 | ; Testcase distilled from 256.bzip2. |
| 5 | |
Danil Malyshev | 7c5db45 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 6 | define i32 @main() { |
| 7 | entry: |
| 8 | br label %loopentry.0 |
| 9 | loopentry.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 |
| 14 | loopentry.1: ; preds = %loopentry.0 |
| 15 | %h.1 = phi i32 [ %tmp.2, %loopentry.0 ] ; <i32> [#uses=1] |
| 16 | ret i32 %h.1 |
| 17 | } |
| 18 | |