• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s
2
3; CHECK: -->  (1 + (zext i4 {-8,+,-8}<%loop> to i32))<nuw><nsw>
4
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}
17