Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / prefetch-8.c
blob705d35fe24f895acca8261d5e9777a3c7d517405
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" } */
6 #define K 1000000
7 int a[K];
9 void test()
11 unsigned i;
13 /* Nontemporal store should be used for a. */
14 for (i = 0; i < K; i++)
15 a[i] = 0;
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" } } */