blob: 450c6c21ae9cb5f8981089ec159f283a4e7427d0 [file] [log] [blame]
Chris Lattner843c80f2003-04-16 22:46:16 +00001; This is a test case for the expression analysis code, not really indvars.
2; It was assuming any constant of int type was a ConstantInteger.
3;
4; RUN: as < %s | opt -indvars
5
6%X = global int 7
7
8void %test(int %A) {
9 br label %Loop
10Loop:
11 %IV = phi int [%A, %0], [%IVNext, %Loop]
12 %IVNext = add int %IV, cast (int* %X to int)
13 br label %Loop
14}