1; RUN: llc < %s -march=mips 2; PR2794 3 4define i32 @main(i8*) nounwind { 5entry: 6 br label %continue.outer 7 8continue.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, i8* %0, i32 %p.0.ph.rec ; <i8*> [#uses=1] 11 %1 = load i8, 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 20case4: ; 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 24return.split: ; preds = %continue.outer 25 ret i32 0 26 27infloop: ; preds = %infloop, %continue.outer 28 br label %infloop 29} 30