1 ; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep -C 1 Loop: | grep Canonical
3 ; The indvar simplification code should ensure that the first PHI in the block
4 ; is the canonical one!
9 %NonIndvar = phi int [200, %0], [%NonIndvarNext, %Loop]
10 %Canonical = phi int [0, %0], [%CanonicalNext, %Loop]
12 %NonIndvarNext = div int %NonIndvar, 2
13 %CanonicalNext = add int %Canonical, 1