1 ; RUN: opt < %s -analyze -scalar-evolution -disable-output \
5 define i16 @main() nounwind {
9 bb.i: ; preds = %bb1.i, %bb.nph
10 %l_95.0.i1 = phi i8 [ %tmp1, %bb.i ], [ 0, %entry ]
12 ; This cast shouldn't be folded into the addrec.
13 ; CHECK: %tmp = zext i8 %l_95.0.i1 to i16
14 ; CHECK: --> (zext i8 {0,+,-1}<bb.i> to i16) Exits: 2
16 %tmp = zext i8 %l_95.0.i1 to i16
18 %tmp1 = add i8 %l_95.0.i1, -1
19 %phitmp = icmp eq i8 %tmp1, 1
20 br i1 %phitmp, label %bb1.i.func_36.exit_crit_edge, label %bb.i
22 bb1.i.func_36.exit_crit_edge: