simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of GET_MODE_UNIT_SIZE...
authorRichard Henderson <rth@redhat.com>
Mon, 16 Jun 2003 20:56:20 +0000 (13:56 -0700)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 16 Jun 2003 20:56:20 +0000 (20:56 +0000)
2003-06-16  Richard Henderson  <rth@redhat.com>

* simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
GET_MODE_UNIT_SIZE when simplifying constant vectors.

From-SVN: r68038

gcc/ChangeLog
gcc/simplify-rtx.c

index b515689e1e3695137acfa64a6074402867dac466..bdd10703a469bdc661df9d575a37483680a80e40 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-16  Richard Henderson  <rth@redhat.com>
+
+       * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
+       GET_MODE_UNIT_SIZE when simplifying constant vectors.
+
 2003-06-16  Andreas Jaeger  <aj@suse.de>
 
        * timevar.c (get_run_time): Remove function provided also by
index 9738566e09e1fe49e19be8837c3221360a6822f0..cf6824442a293d50f4aebc1fa6e8ae8d703b26d0 100644 (file)
@@ -2721,7 +2721,7 @@ simplify_subreg (outermode, op, innermode, byte)
              /* This might fail, e.g. if taking a subreg from a SYMBOL_REF.  */
              /* ??? It would be nice if we could actually make such subregs
                 on targets that allow such relocations.  */
-             if (byte >= GET_MODE_UNIT_SIZE (innermode))
+             if (byte >= GET_MODE_SIZE (innermode))
                elt = CONST0_RTX (submode);
              else
                elt = simplify_subreg (submode, op, innermode, byte);