blob: 8003fd3671050e5084c578da0b08be3dfd1ef8ee [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -scalar-evolution -analyze -disable-output \
Dan Gohman169195e2010-01-09 18:17:45 +00002; RUN: | grep {\\--> (zext i4 {-7,+,-8}<%loop> to i32)}
Dan Gohmana7726c32009-06-16 19:52:01 +00003
4define fastcc void @foo() nounwind {
5entry:
6 br label %loop
7
8loop:
9 %i = phi i32 [ 0, %entry ], [ %t2, %loop ]
10 %t0 = add i32 %i, 9
11 %t1 = and i32 %t0, 9
12 store i32 %t1, i32* null
13 %t2 = add i32 %i, 8
14 br label %loop
15}