diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-19 12:57:36 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-19 12:57:36 +0000 |
commit | 678ac0f4124b36a9c443421e1d013edc8dea25be (patch) | |
tree | 7528a625fdf4ebac3efe2a35ac63b4ccf463908b /gcc/rtlanal.c | |
parent | 5bb46c0854b269fe8daad88a7ccf2ca4d1710c8b (diff) | |
download | gcc-678ac0f4124b36a9c443421e1d013edc8dea25be.tar.gz |
* rtlanal.c (subreg_offset_representable_p): Fix call of
subreg_lowpart.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65817 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 80fff6310bf..b0c76cc851d 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3432,8 +3432,10 @@ subreg_offset_representable_p (xregno, xmode, offset, ymode) redesigned. */ if (GET_MODE_SIZE (xmode) % GET_MODE_SIZE (ymode) || GET_MODE_SIZE (ymode) % nregs_ymode - || mode_for_size (GET_MODE_SIZE (ymode) / nregs_ymode, - MODE_INT, 0) == VOIDmode + || (GET_MODE_BITSIZE (mode_for_size (GET_MODE_BITSIZE (xmode) + / nregs_xmode, + MODE_INT, 0)) + != GET_MODE_BITSIZE (xmode) / nregs_xmode) || nregs_xmode % nregs_ymode) abort (); #endif @@ -3441,9 +3443,10 @@ subreg_offset_representable_p (xregno, xmode, offset, ymode) /* The XMODE value can be seen as an vector of NREGS_XMODE values. The subreg must represent an lowpart of given field. Compute what field it is. */ - offset -= subreg_lowpart_offset (mode_for_size (GET_MODE_SIZE (ymode) - / nregs_ymode, - MODE_INT, 0), xmode); + offset -= subreg_lowpart_offset (ymode, + mode_for_size (GET_MODE_BITSIZE (xmode) + / nregs_xmode, + MODE_INT, 0)); /* size of ymode must not be greater than the size of xmode. */ mode_multiple = GET_MODE_SIZE (xmode) / GET_MODE_SIZE (ymode); |