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

📄 save-restore-2.c

📁 用于进行gcc测试
💻 C
字号:
/* Check that we can use the save instruction to save spilled arguments.  *//* { dg-do compile { target mips16_attribute } } *//* { dg-mips-options "-mips32r2 -mabi=32 -O2" } *//* { dg-add-options mips16_attribute } */MIPS16 voidfoo (int *a, int b, int c){  asm volatile ("" ::: "$2", "$3", "$4", "$5", "$6", "$7", "$8",		"$9", "$10", "$11", "$12", "$13", "$14", "$15", "$16",		"$17", "$18", "$19", "$20", "$21", "$22", "$23", "$24",		"$25", "$30", "memory");  a[b] = 1;  a[c] = 1;}/* { dg-final { scan-assembler "\tsave\t\\\$4-\\\$6," } } *//* { dg-final { scan-assembler "\trestore\t" } } */

⌨️ 快捷键说明

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