Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ivopt_infer_2.c
blob8f119c698204fc7abe7dcfc8efc0f1c4e4095e81
1 /* { dg-do compile { target {{ i?86-*-* x86_64-*-* } && lp64 } } } */
2 /* { dg-options "-O2 -m64 -fdump-tree-ivopts-details" } */
4 #ifndef TYPE
5 #define TYPE char*
6 #endif
8 extern char a[];
10 /* Can not infer loop iteration from array -- exit test can not be
11 replaced by the array address. */
12 void foo (unsigned int i_width, TYPE dst)
14 unsigned long long i = 0;
15 unsigned long long j = 0;
16 for ( ; j < i_width; )
18 *dst = a[i];
19 dst++;
20 i += 2;
21 j += 1;
25 /* { dg-final { scan-tree-dump-times "\[^:\]*if \\(.*j_\[0-9\]+.*\\)" 1 "ivopts"} } */