1 /* Prefetching used to prefer nonsensical unroll factor of 5 in this testcase. */
3 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4 /* { dg-require-effective-target ilp32 } */
5 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -msse2 -mfpmath=sse -fdump-tree-aprefetch-details" } */
16 for (i = 0; i < N; i += 2)
17 sum += (a[i] * a[i+1]);
22 /* { dg-final { scan-tree-dump-times "unroll factor 4" 1 "aprefetch" } } */
23 /* { dg-final { cleanup-tree-dump "aprefetch" } } */