From d91684adfb1f30f338ef9ec975ed788006fb88cb Mon Sep 17 00:00:00 2001 From: Kirill Yukhin Date: Mon, 13 Oct 2014 17:29:31 +0000 Subject: [PATCH] Add missing in r216154 test. From-SVN: r216156 --- gcc/testsuite/gcc.target/i386/pr47602.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr47602.c 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"); +} -- 2.30.2