1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-require-effective-target ilp32 } */
3 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -fdump-tree-final_cleanup -fdump-tree-aprefetch --param max-unrolled-insns=1000" } */
11 for (i
= 0; i
< n
; i
++)
15 /* There should be 64 MEMs in the unrolled loop and one more in the copy of the loop
16 for the rest of the iterations. */
18 /* { dg-final { scan-tree-dump-times "MEM" 65 "final_cleanup" } } */
20 /* There should be no i_a = i_b assignments. */
21 /* { dg-final { scan-tree-dump-times "i_.*= i_\[0-9\]*;" 0 "aprefetch" } } */
23 /* { dg-final { cleanup-tree-dump "final_cleanup" } } */
24 /* { dg-final { cleanup-tree-dump "aprefetch" } } */