1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivopts" } */
3 /* { dg-skip-if "PR68644" { hppa*-*-* powerpc*-*-* } } */
4 
5 void
f1(int * p,unsigned int i)6 f1 (int *p, unsigned int i)
7 {
8   p += i;
9   do
10     {
11       *p = 0;
12       p += 1;
13       i++;
14     }
15   while (i < 100);
16 }
17 
18 /* { dg-final { scan-tree-dump-times "PHI" 1 "ivopts" } } */
19 /* { dg-final { scan-tree-dump-times "PHI <p_" 1 "ivopts"} } */
20 /* { dg-final { scan-tree-dump-times "p_\[0-9\]* <" 1 "ivopts" } } */
21