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

📄 branch-1.c

📁 linux下编程用 编译软件
💻 C
字号:
/* We should implement these "if" statements using an "andi" instruction   followed by a branch on zero.  *//* { dg-mips-options "-O2 -mno-mips16" } */void bar (void);void f1 (int x) { if (x & 4) bar (); }void f2 (int x) { if ((x >> 2) & 1) bar (); }void f3 (unsigned int x) { if (x & 0x10) bar (); }void f4 (unsigned int x) { if ((x >> 4) & 1) bar (); }/* { dg-final { scan-assembler "\tandi\t.*\tandi\t.*\tandi\t.*\tandi\t" } } *//* { dg-final { scan-assembler-not "\tsrl\t" } } *//* { dg-final { scan-assembler-not "\tsra\t" } } */

⌨️ 快捷键说明

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