OSDN Git Service

PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / prefetch-4.c
1 /* The loop rolls too little, hence the prefetching would not be useful.  */
2
3 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
4 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -fdump-tree-optimized" } */
5
6 int xxx[20];
7
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 /* { dg-final { cleanup-tree-dump "optimized" } } */