re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.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-*-* } } */
4 /* { dg-require-effective-target ilp32 } */
5 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -fdump-tree-final_cleanup" } */
6
7 int xxx[20];
8
9 void foo (int n)
10 {
11 int i;
12
13 for (i = 0; i < n; i++)
14 xxx[i] = i;
15 }
16
17 /* { dg-final { scan-tree-dump-times "prefetch" 0 "final_cleanup" } } */
18 /* { dg-final { cleanup-tree-dump "final_cleanup" } } */