xref: /llvm-project/llvm/test/Transforms/IndVarSimplify/shrunk-constant.ll (revision 864bb84a427de367528d15270790dd152871daf2)
1; RUN: opt < %s -passes='print<scalar-evolution>' 2>&1 | 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, ptr null
14	%t2 = add i32 %i, 8
15	br label %loop
16}
17