OSDN Git Service

* convert.c (convert_to_integer): Convert (long)round -> lround,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / ia64-asm-1.c
1 /* { dg-do run { target ia64-*-* } } */
2 /* { dg-options } */
3
4 /* Test that "=S" properly avoids the post-increment on the memory address.  */
5
6 static void foo(int *x)
7 {
8   long i;
9   for (i = 0; i < 100; ++i)
10     __asm__("st4 %0 = r0" : "=S"(x[i]));
11 }
12
13 int main()
14 {
15   int array[100];
16   long i;
17
18   for (i = 0; i < 100; ++i)
19     array[i] = -1;
20
21   foo(array);
22
23   for (i = 0; i < 100; ++i)
24     if (array[i])
25       abort ();
26   return 0;
27 }