blob: 477c86b79ac81bf4e8215fcac60bbfd7402583c3 [file] [log] [blame]
Sanjoy Dasac5bf592016-08-03 20:53:23 +00001; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s
2
3; CHECK: --> (zext i4 {-7,+,-8}<%loop> to i32)
Dan Gohman1ee696d2009-06-16 19:52:01 +00004
5define fastcc void @foo() nounwind {
6entry:
7 br label %loop
8
9loop:
10 %i = phi i32 [ 0, %entry ], [ %t2, %loop ]
11 %t0 = add i32 %i, 9
12 %t1 = and i32 %t0, 9
13 store i32 %t1, i32* null
14 %t2 = add i32 %i, 8
15 br label %loop
16}