PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr47602.c
blobfa5f5bd7d3516358814a9fa292cd818d6baffd4d
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-fPIC" } */
5 /* Test verifies that %ebx is no longer fixed when generating PIC code on i686. */
7 int a, b, c;
9 void
10 foo (void)
12 asm volatile ("movl $0,%%ebx" : : : "ebx");