1 ; RUN: llc < %s -march=mips
4 define i32 @main(ptr) nounwind {
6 br label %continue.outer
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, ptr %0, i32 %p.0.ph.rec ; <ptr> [#uses=1]
11 %1 = load i8, ptr %p.0.ph ; <i8> [#uses=1]
12 switch i8 %1, label %infloop [
13 i8 0, label %return.split
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
24 return.split: ; preds = %continue.outer
27 infloop: ; preds = %infloop, %continue.outer