include/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / ia64-asm-1.c
blob48b24d31a7a4f25fa4b6fb2fc921348d911464d3
1 /* { dg-do run { target ia64-*-* } } */
2 /* { dg-options } */
4 /* Test that "=S" properly avoids the post-increment on the memory address. */
6 static void foo(int *x)
8 long i;
9 for (i = 0; i < 100; ++i)
10 __asm__("st4 %0 = r0" : "=S"(x[i]));
13 int main()
15 int array[100];
16 long i;
18 for (i = 0; i < 100; ++i)
19 array[i] = -1;
21 foo(array);
23 for (i = 0; i < 100; ++i)
24 if (array[i])
25 abort ();
26 return 0;