1 ; RUN: llvm-as < %s | opt -loop-index-split -disable-output -stats |& \
2 ; RUN: not grep "loop-index-split"
4 ; Induction variable decrement is not yet handled.
6 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
7 target triple = "i686-apple-darwin9"
8 %struct.cset = type { i8*, i8, i8, i32, i8* }
9 %struct.parse = type { i8*, i8*, i32, i32*, i32, i32, i32, %struct.re_guts*, [10 x i32], [10 x i32] }
10 %struct.re_guts = type { i32, i32*, i32, i32, %struct.cset*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i8*, i8*, i32, i32, i32, i32, [1 x i8] }
12 define fastcc void @p_bracket(%struct.parse* %p) {
14 br i1 false, label %bb160, label %bb195
16 bb160: ; preds = %entry
17 br i1 false, label %bb.i169, label %bb9.i
19 bb195: ; preds = %entry
22 bb.i169: ; preds = %bb160
23 br i1 false, label %bb372, label %bb565
25 bb9.i: ; preds = %bb160
28 bb372: ; preds = %bb418, %bb.i169
29 %i1.0.reg2mem.0 = phi i32 [ %i1.0, %bb418 ], [ 0, %bb.i169 ] ; <i32> [#uses=2]
30 %tmp3.i.i.i170 = icmp ult i32 %i1.0.reg2mem.0, 128 ; <i1> [#uses=1]
31 br i1 %tmp3.i.i.i170, label %bb.i.i173, label %bb13.i.i
33 bb.i.i173: ; preds = %bb372
36 bb13.i.i: ; preds = %bb372
39 bb418: ; preds = %bb13.i.i, %bb.i.i173
40 %i1.0 = add i32 %i1.0.reg2mem.0, -1 ; <i32> [#uses=2]
41 %tmp420 = icmp sgt i32 %i1.0, -1 ; <i1> [#uses=1]
42 br i1 %tmp420, label %bb372, label %bb565
44 bb565: ; preds = %bb418, %bb.i169