ChangeLog:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Apr 2005 08:25:00 +0000 (08:25 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Apr 2005 08:25:00 +0000 (08:25 +0000)
PR target/20927
* config/s390/s390-modes.def: Define TFmode.

testsuite/ChangeLog:

PR target/20927
* gcc.dg/pr20927.c: New test.

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

gcc/ChangeLog
gcc/config/s390/s390-modes.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr20927.c [new file with mode: 0644]

index 0ce7275..f96cfbd 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR target/20927
+       * config/s390/s390-modes.def: Define TFmode.
+
 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
index 1cb0f19..6520dda 100644 (file)
@@ -23,6 +23,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 /* 256-bit integer mode is needed for STACK_SAVEAREA_MODE.  */
 INT_MODE (OI, 32);
 
+/* Define TFmode to work around reload problem PR 20927.  */
+FLOAT_MODE (TF, 16, ieee_quad_format);
+
 /* Add any extra modes needed to represent the condition code.  */
 
 /*
index b09c5b7..70a0126 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR target/20927
+       * gcc.dg/pr20927.c: New test.
+
 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
 
        * gcc.dg/torture/pr19683-1.c: Guard with #ifndef __mips16.
diff --git a/gcc/testsuite/gcc.dg/pr20927.c b/gcc/testsuite/gcc.dg/pr20927.c
new file mode 100644 (file)
index 0000000..55cda33
--- /dev/null
@@ -0,0 +1,23 @@
+/* This caused an ICE on s390x due to a reload inheritance bug.  */
+
+/* { dg-do compile { target s390*-*-* } } */
+/* { dg-options "-O2" } */
+
+struct point { double x, y; };
+extern void use (struct point);
+
+void test (struct point *pc, struct point p1)
+{
+  struct point p0 = *pc;
+
+  if (p0.x == p1.x && p0.y == p1.y)
+    use (p0);
+
+  asm ("" : : : "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10");
+
+  p1.y -= p0.y;
+
+  use (p0);
+  use (p1);
+}
+