From a56e69dae3619ba2ec73ce2fef81f31fc81af575 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 25 Nov 2014 21:07:43 +0000 Subject: [PATCH] Add a testcase for PR target/63534 PR target/63534 * gcc.target/i386/pr63534.c: New test. From-SVN: r218062 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr63534.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr63534.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1c17f23af07..e0f44411345 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-25 H.J. Lu + + PR target/63534 + * gcc.target/i386/pr63534.c: New test. + 2014-11-25 H.J. Lu PR target/63527 diff --git a/gcc/testsuite/gcc.target/i386/pr63534.c b/gcc/testsuite/gcc.target/i386/pr63534.c new file mode 100644 index 00000000000..39dd8c1666a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr63534.c @@ -0,0 +1,15 @@ +/* PR target/pr63534 */ +/* { dg-do compile { target { ia32 && fpic } } } */ +/* { dg-options "-O2 -fPIC" } */ + +extern void bar (void); + +void +foo (void) +{ + bar (); + bar (); +} + +/* We shouldn't load EBX again. */ +/* { dg-final { scan-assembler-not "movl\[ \t\]%\[^,\]+, %ebx" } } */