gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / prefetch-4.c
blob11fd41f0b93cee19937d0be2aab2f173c748029e
1 /* The loop rolls too little, hence the prefetching would not be useful. */
3 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
4 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -fdump-tree-optimized" } */
6 int xxx[20];
8 void foo (int n)
10 int i;
12 for (i = 0; i < n; i++)
13 xxx[i] = i;
16 /* { dg-final { scan-tree-dump-times "prefetch" 0 "optimized" } } */
17 /* { dg-final { cleanup-tree-dump "optimized" } } */