1 /* The loop rolls too little, hence the prefetching would not be useful.  */
2 
3 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
4 /* { dg-options "-O2 -fprefetch-loop-arrays -march=amdfam10 -fdump-tree-optimized" } */
5 
6 int xxx[20];
7 
foo(int n)8 void foo (int n)
9 {
10   int i;
11 
12   for (i = 0; i < n; i++)
13     xxx[i] = i;
14 }
15 
16 /* { dg-final { scan-tree-dump-times "prefetch" 0 "optimized" } } */
17