ia64-asm-1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 28 行

C
28
字号
/* { dg-do run { target ia64-*-* } } *//* { dg-options } *//* Test that "=S" properly avoids the post-increment on the memory address.  */static void foo(int *x){  long i;  for (i = 0; i < 100; ++i)    __asm__("st4 %0 = r0" : "=S"(x[i]));}int main(){  int array[100];  long i;  for (i = 0; i < 100; ++i)    array[i] = -1;  foo(array);  for (i = 0; i < 100; ++i)    if (array[i])      abort ();  return 0;}

⌨️ 快捷键说明

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