]> gcc.gnu.org Git - gcc.git/commitdiff
recog.c (validate_replace_rtx_1): Use "TO" mode if not VOIDmode when calling simplify...
authorJan Hubicka <jh@suse.cz>
Thu, 17 May 2001 17:49:34 +0000 (19:49 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 17 May 2001 17:49:34 +0000 (17:49 +0000)
* recog.c (validate_replace_rtx_1): Use "TO" mode if not VOIDmode
when calling simplify_subreg.  This is needed to allow replacing
of expression of one mode by expression of different mode.

From-SVN: r42214

gcc/ChangeLog
gcc/recog.c

index 4087617124ca8c2eb1b0533f057fd19952c86cc2..f021be5cd4deab8076c6f385bcb3ebaa0cc833f5 100644 (file)
@@ -1,3 +1,9 @@
+Thu May 17 19:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
+
+       * recog.c (validate_replace_rtx_1): Use "TO" mode if not VOIDmode
+       when calling simplify_subreg.  This is needed to allow replacing
+       of expression of one mode by expression of different mode.
+
 Thu May 17 19:40:03 CEST 2001  Jan Hubicka  <jh@suse.cz>
 
        * simplify-rtx.c  (simplify_subreg): Avoid creating of incorrect subregs.
index d858394c4cdf4b75b969b1555106265adfe03200..00b45c64ce56469a5cb6e9e27592a6fc3c548250 100644 (file)
@@ -582,7 +582,9 @@ validate_replace_rtx_1 (loc, from, to, object)
       if (rtx_equal_p (SUBREG_REG (x), from))
         {
          rtx temp;
-         temp = simplify_subreg (GET_MODE (x), to, GET_MODE (SUBREG_REG (x)),
+         temp = simplify_subreg (GET_MODE (x), to,
+                                 GET_MODE (to) != VOIDmode
+                                 ? GET_MODE (to) : GET_MODE (SUBREG_REG (x)),
                                  SUBREG_BYTE (x));
          if (temp)
            {
This page took 0.069539 seconds and 5 git commands to generate.