recog.c (validate_replace_rtx_1): Correct MODE parameter in call to operand_subword.
authorGeoff Keating <geoffk@cygnus.com>
Sat, 9 Sep 2000 19:34:27 +0000 (19:34 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sat, 9 Sep 2000 19:34:27 +0000 (19:34 +0000)
* recog.c (validate_replace_rtx_1): Correct MODE parameter in call
to operand_subword.

From-SVN: r36281

gcc/ChangeLog
gcc/recog.c

index 1441c2f2c82d7a201be697ca05fd336fc143c89e..004785a7505a0d4c95f5e2d7556e263a58f62a4a 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-09  Geoff Keating  <geoffk@cygnus.com>
+
+       * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
+       to operand_subword.
+
 2000-09-10  Michael Hayes  <mhayes@cygnus.com>
 
        * loop.c (struct movables): New.
index 7f35c9f542c803d14d733e42f62cb559460ade57..87f8137f30225ff4a734b08d7e407bb94e7dbc61 100644 (file)
@@ -505,7 +505,7 @@ validate_replace_rtx_1 (loc, from, to, object)
              && GET_MODE_CLASS (GET_MODE (x)) == MODE_INT)
            {
              rtx temp = operand_subword (to, SUBREG_WORD (x),
-                                         0, GET_MODE (x));
+                                         0, GET_MODE (from));
              if (temp)
                {
                  validate_change (object, loc, temp, 1);