⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i386-pf-3dnow-1.c

📁 gcc-you can use this code to learn something about gcc, and inquire further into linux,
💻 C
字号:
/* Test that the correct data prefetch instructions are generated for i386   variants that use 3DNow! prefetch instructions.  *//* { dg-do compile { target i?86-*-* } } */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" } } */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -