Add missing in r216154 test.
authorKirill Yukhin <kyukhin@gcc.gnu.org>
Mon, 13 Oct 2014 17:29:31 +0000 (17:29 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Mon, 13 Oct 2014 17:29:31 +0000 (17:29 +0000)
From-SVN: r216156

gcc/testsuite/gcc.target/i386/pr47602.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/i386/pr47602.c b/gcc/testsuite/gcc.target/i386/pr47602.c
new file mode 100644 (file)
index 0000000..fa5f5bd
--- /dev/null
@@ -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");
+}