Add a testcase for PR target/63534
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Nov 2014 21:07:43 +0000 (21:07 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Nov 2014 21:07:43 +0000 (21:07 +0000)
PR target/63534
* gcc.target/i386/pr63534.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218062 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1c17f23..e0f4441 100644 (file)
@@ -1,5 +1,10 @@
 2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>
 
+       PR target/63534
+       * gcc.target/i386/pr63534.c: New test.
+
+2014-11-25  H.J. Lu  <hongjiu.lu@intel.com>
+
        PR target/63527
        * gcc.target/i386/pr63527.c: New test.
 
diff --git a/gcc/testsuite/gcc.target/i386/pr63534.c b/gcc/testsuite/gcc.target/i386/pr63534.c
new file mode 100644 (file)
index 0000000..39dd8c1
--- /dev/null
@@ -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" } } */