Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / prefetch-8.c
blobfe433ac3a7f08c0a620f5eb4999c5cbd779d5586
1 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
2 /* { dg-options "-O2 -fprefetch-loop-arrays -march=amdfam10 --param simultaneous-prefetches=100 -fdump-tree-aprefetch-details -fdump-tree-optimized" } */
4 #define K 1000000
5 int a[K];
7 void test()
9 unsigned i;
11 /* Nontemporal store should be used for a. */
12 for (i = 0; i < K; i++)
13 a[i] = 0;
16 /* { dg-final { scan-tree-dump-times "a nontemporal store" 1 "aprefetch" } } */
18 /* { dg-final { scan-tree-dump "=\\{nt\\}" "optimized" } } */
19 /* { dg-final { scan-tree-dump-times "__builtin_ia32_mfence" 1 "optimized" } } */