1 /* Test that the correct data prefetch instructions are generated for i386
2 variants that use 3DNow! prefetch instructions. */
4 /* { dg-do compile { target i?86-*-* } } */
6 char *msg = "howdy there";
10 __builtin_prefetch (p, 0, 0);
11 __builtin_prefetch (p, 0, 1);
12 __builtin_prefetch (p, 0, 2);
13 __builtin_prefetch (p, 0, 3);
14 __builtin_prefetch (p, 1, 0);
15 __builtin_prefetch (p, 1, 1);
16 __builtin_prefetch (p, 1, 2);
17 __builtin_prefetch (p, 1, 3);
26 /* { dg-final { scan-assembler "prefetch" } } */
27 /* { dg-final { scan-assembler "prefetchw" } } */
28 /* { dg-final { scan-assembler-not "prefetchnta" } } */
29 /* { dg-final { scan-assembler-not "prefetcht" } } */