Home | History | Annotate | Download | only in IndVarSimplify
      1 ; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s
      2 
      3 ; CHECK: -->  (1 + (zext i4 {-8,+,-8}<%loop> to i32))<nuw><nsw>
      4 
      5 define fastcc void @foo() nounwind {
      6 entry:
      7 	br label %loop
      8 
      9 loop:
     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 }
     17