1 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
2 /* { dg-require-effective-target sse2 } */
3 /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=athlon" } } */
4 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon -msse2 -mfpmath=sse --param simultaneous-prefetches=100 -fdump-tree-aprefetch-details -fdump-tree-optimized" } */
13 /* Nontemporal store should be used for a. */
14 for (i
= 0; i
< K
; i
++)
18 /* { dg-final { scan-tree-dump-times "a nontemporal store" 1 "aprefetch" } } */
20 /* { dg-final { scan-tree-dump "=\\{nt\\}" "optimized" } } */
21 /* { dg-final { scan-tree-dump-times "__builtin_ia32_mfence" 1 "optimized" } } */
23 /* { dg-final { scan-assembler "movnti" } } */
24 /* { dg-final { scan-assembler-times "mfence" 1 } } */
26 /* { dg-final { cleanup-tree-dump "aprefetch" } } */
27 /* { dg-final { cleanup-tree-dump "optimized" } } */