From: Kirill Yukhin Date: Mon, 13 Oct 2014 17:29:31 +0000 (+0000) Subject: Add missing in r216154 test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d91684adfb1f30f338ef9ec975ed788006fb88cb;p=gcc.git Add missing in r216154 test. From-SVN: r216156 --- diff --git a/gcc/testsuite/gcc.target/i386/pr47602.c b/gcc/testsuite/gcc.target/i386/pr47602.c new file mode 100644 index 00000000000..fa5f5bd7d35 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr47602.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target ia32 } */ +/* { dg-options "-fPIC" } */ + +/* Test verifies that %ebx is no longer fixed when generating PIC code on i686. */ + +int a, b, c; + +void +foo (void) +{ + asm volatile ("movl $0,%%ebx" : : : "ebx"); +}