1 ; Induction variable pass is doing bad things with pointer induction vars,
2 ; trying to do arithmetic on them directly.
4 ; RUN: llvm-as < %s | opt -indvars
6 void %test(int %A, uint %S, sbyte* %S) {
10 %PIV = phi sbyte* [%S, %0], [%PIVNext, %Loop]
12 %PIV = cast sbyte* %PIV to ulong
13 %PIVNext = add ulong %PIV, 8
14 %PIVNext = cast ulong %PIVNext to sbyte*