diff options
author | Richard Henderson <rth@redhat.com> | 2003-06-16 13:56:20 -0700 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2003-06-16 20:56:20 +0000 |
commit | 799ab2c7133895e3e4db410cd68b53bfca0b84f5 (patch) | |
tree | 5b9c6be433653df747650e11bc548d8292cafacc /gcc | |
parent | 33b0d00f2a41e9a0dcdfeeabfd61242ea46a9b04 (diff) | |
download | gcc-799ab2c7133895e3e4db410cd68b53bfca0b84f5.zip gcc-799ab2c7133895e3e4db410cd68b53bfca0b84f5.tar.gz gcc-799ab2c7133895e3e4db410cd68b53bfca0b84f5.tar.bz2 |
simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of GET_MODE_UNIT_SIZE when simplifying constant vectors.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b515689..bdd1070 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 9738566..cf68244 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -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); |