1 /* { dg-do compile { target {{ i?86-*-* x86_64-*-* } && lp64 } } } */
2 /* { dg-options "-O2 -m64 -fdump-tree-ivopts-details" } */
4 /* Exit tests 'i < N1' and 'p2 > p_limit2' can be replaced, so
5 * two ivs i and p2 can be eliminate. */
6 long foo(long* p, long* p2, int N1, int N2)
9 long* p_limit2 = p2 + N2;
24 /* { dg-final { scan-tree-dump-times "Replacing" 2 "ivopts"} } */
25 /* { dg-final { cleanup-tree-dump "ivopts" } } */