* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-asm-1.c
blobbf7aa1d0c4b55bcdf7c13ed121d20001a0a87019
1 /* PR inline-asm/11676 */
2 /* { dg-do run { target i?86-*-* } } */
3 /* { dg-options "-O2" } */
5 static int bar(int x) __asm__("bar") __attribute__((regparm(1)));
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;