* config/xtensa/xtensa.c (function_arg): Generalize logic so that it
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-asm-1.c
blobaae0de845b30b540ce42d9925fb3d833c7371966
1 /* PR inline-asm/11676 */
2 /* { dg-do run { target i?86-*-* } } */
3 /* { dg-options "-O2" } */
5 static int bar(int x) __asm__("bar");
6 static int __attribute__((regparm(1), noinline, used))
7 bar(int x)
9 if (x != 0)
10 abort ();
13 static int __attribute__((regparm(1), noinline))
14 foo(int x)
16 x = 0;
17 __asm__ __volatile__("call bar" : "=a"(x) : "a"(x));
20 int main()
22 foo(1);
23 return 0;