Dan Gohman | da594cf | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=mips |
Evan Cheng | d901b66 | 2008-10-13 18:46:18 +0000 | [diff] [blame] | 2 | ; PR2794 |
| 3 | |
| 4 | define i32 @main(i8*) nounwind { |
| 5 | entry: |
| 6 | br label %continue.outer |
| 7 | |
| 8 | continue.outer: ; preds = %case4, %entry |
| 9 | %p.0.ph.rec = phi i32 [ 0, %entry ], [ %indvar.next, %case4 ] ; <i32> [#uses=2] |
| 10 | %p.0.ph = getelementptr i8* %0, i32 %p.0.ph.rec ; <i8*> [#uses=1] |
| 11 | %1 = load i8* %p.0.ph ; <i8> [#uses=1] |
| 12 | switch i8 %1, label %infloop [ |
| 13 | i8 0, label %return.split |
| 14 | i8 76, label %case4 |
| 15 | i8 108, label %case4 |
| 16 | i8 104, label %case4 |
| 17 | i8 42, label %case4 |
| 18 | ] |
| 19 | |
| 20 | case4: ; preds = %continue.outer, %continue.outer, %continue.outer, %continue.outer |
| 21 | %indvar.next = add i32 %p.0.ph.rec, 1 ; <i32> [#uses=1] |
| 22 | br label %continue.outer |
| 23 | |
| 24 | return.split: ; preds = %continue.outer |
| 25 | ret i32 0 |
| 26 | |
| 27 | infloop: ; preds = %infloop, %continue.outer |
| 28 | br label %infloop |
| 29 | } |