re PR target/18774 (mmix-knuth-mmixware testsuite failure: gcc.c-torture/execute...
authorRichard Henderson <rth@redhat.com>
Fri, 3 Dec 2004 03:27:34 +0000 (19:27 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 3 Dec 2004 03:27:34 +0000 (19:27 -0800)
PR 18774
        * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.

From-SVN: r91672

gcc/ChangeLog
gcc/simplify-rtx.c

index ad04198..471219c 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-02  Richard Henderson  <rth@redhat.com>
+
+       * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
+
 2004-12-03  Ben Elliston  <bje@au.ibm.com>
 
        * doc/cfg.texi (Edges): Update. Document the edge_iterator data
index 75bf42a..580782d 100644 (file)
@@ -3326,6 +3326,10 @@ simplify_immed_subreg (enum machine_mode outermode, rtx op,
   if (GET_MODE_CLASS (outermode) == MODE_CC && GET_CODE (op) == CONST_INT)
     return op;
 
+  /* We have no way to represent a complex constant at the rtl level.  */
+  if (COMPLEX_MODE_P (outermode))
+    return NULL_RTX;
+
   /* Unpack the value.  */
 
   if (GET_CODE (op) == CONST_VECTOR)