| /* Test that the correct data prefetch instructions are generated for i386 |
| variants that use 3DNow! prefetchw or SSE prefetch instructions with |
| /* { dg-do compile { target i?86-*-* } } */ |
| /* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */ |
| char *msg = "howdy there"; |
| __builtin_prefetch (p, 0, 0); |
| __builtin_prefetch (p, 0, 1); |
| __builtin_prefetch (p, 0, 2); |
| __builtin_prefetch (p, 0, 3); |
| __builtin_prefetch (p, 1, 0); |
| __builtin_prefetch (p, 1, 1); |
| __builtin_prefetch (p, 1, 2); |
| __builtin_prefetch (p, 1, 3); |
| /* { dg-final { scan-assembler "prefetchw" } } */ |
| /* { dg-final { scan-assembler "prefetchnta" } } */ |
| /* { dg-final { scan-assembler "prefetcht" } } */ |