Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.misc-tests/i386-pf-3dnow-1.c @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Test that the correct data prefetch instructions are generated for i386 variants that use 3DNow! prefetch instructions. */ /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ extern void exit (int); char *msg = "howdy there"; void foo (char *p) { __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); } int main () { foo (msg); exit (0); } /* { dg-final { scan-assembler "prefetch" } } */ /* { dg-final { scan-assembler "prefetchw" } } */ /* { dg-final { scan-assembler-not "prefetchnta" } } */ /* { dg-final { scan-assembler-not "prefetcht" } } */