OSDN Git Service

PR rtl-optimization/44174
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jan 2011 08:39:33 +0000 (08:39 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jan 2011 08:39:33 +0000 (08:39 +0000)
* gcc.target/i386/asm-6.c: New test.

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

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

index 4414684..a626d20 100644 (file)
@@ -1,4 +1,9 @@
-2011-01-26  Mikael Pettersson <mikpe@it.uu.se>
+2011-01-27  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR rtl-optimization/44174
+       * gcc.target/i386/asm-6.c: New test.
+
+2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
 
        PR rtl-optimization/46856
        * gcc.c-torture/compile/pr46856.c: New test.
diff --git a/gcc/testsuite/gcc.target/i386/asm-6.c b/gcc/testsuite/gcc.target/i386/asm-6.c
new file mode 100644 (file)
index 0000000..6aa37ef
--- /dev/null
@@ -0,0 +1,16 @@
+/* PR rtl-optimization/44174 */
+/* Testcase by Jakub Jelinek <jakub@gcc.gnu.org> */
+
+/* { dg-do compile } */
+/* { dg-options "-O2 -fpic" { target fpic } } */
+
+int f0 (int, int, int, int, int);
+int f1 (void);
+
+void
+f2 (void)
+{
+  unsigned v1, v2, v3, v4;
+  __asm__ ("" : "=a" (v1), "=d" (v2), "=c" (v3), "=r" (v4));
+  f0 (f1 (), f1 (), f1 (), f1 (), (v4 >> 8) & 0xff);
+}