blob: 83b5728ef1a4bcaf935d1411d7aaf118ac0881e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-O2 -fdump-tree-ivopts-details" } */
void test (int *b, int *e, int stride)
{
for (int *p = b; p != e; p += stride)
*p = 1;
}
/* { dg-final { scan-tree-dump-times "PHI <\[pb\]" 1 "ivopts"} } */
/* { dg-final { cleanup-tree-dump "ivopts" } } */
|