Tanya Lattner | e9789ef | 2004-11-06 23:32:43 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as -f %s -o %t.bc |
| 2 | ; RUN: lli %t.bc > /dev/null |
| 3 | |
Chris Lattner | 7990199 | 2003-06-05 05:38:30 +0000 | [diff] [blame] | 4 | ; Testcase distilled from 256.bzip2. |
| 5 | |
| 6 | target endian = little |
| 7 | target pointersize = 32 |
| 8 | |
| 9 | int %main() { |
| 10 | entry: |
| 11 | br label %loopentry.0 |
| 12 | |
| 13 | loopentry.0: |
| 14 | %h.0 = phi int [ %tmp.2, %loopentry.0 ], [ -1, %entry ] |
| 15 | %tmp.2 = add int %h.0, 1 |
| 16 | %tmp.4 = setne int %tmp.2, 0 |
| 17 | br bool %tmp.4, label %loopentry.0, label %loopentry.1 |
| 18 | |
| 19 | loopentry.1: |
| 20 | %h.1 = phi int [ %tmp.2, %loopentry.0 ] |
| 21 | ret int %h.1 |
| 22 | } |