gcc/testsuite/gcc.target/i386/pr47602.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target ia32 } */ |
| 3 | /* { dg-require-effective-target fpic } */ |
| 4 | /* { dg-options "-fPIC" } */ |
| 5 | |
| 6 | /* Test verifies that %ebx is no longer fixed when generating PIC code on i686. */ |
| 7 | |
| 8 | int a, b, c; |
| 9 | |
| 10 | void |
| 11 | foo (void) |
| 12 | { |
| 13 | asm volatile ("movl $0,%%ebx" : : : "ebx"); |
| 14 | } |