diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-09-15 10:45:25 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-09-15 10:45:25 -0700 |
commit | 485fafaa1521a5db4994ec7d26d46a531f25d21e (patch) | |
tree | 4762734c7ea321b1fd3f623605699ea0d5440f28 /gcc/expmed.c | |
parent | f1636e8ad83096ea887edc73633367c329ca051a (diff) | |
download | gcc-485fafaa1521a5db4994ec7d26d46a531f25d21e.zip gcc-485fafaa1521a5db4994ec7d26d46a531f25d21e.tar.gz gcc-485fafaa1521a5db4994ec7d26d46a531f25d21e.tar.bz2 |
(store_split_bit_field): Use number of bits in arg not
BITS_PER_WORD to adjust arg in BYTES_BIG_ENDIAN case.
From-SVN: r8086
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 45d0dfe..715aedf 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -751,7 +751,8 @@ store_split_bit_field (op0, bitsize, bitpos, value, align) Give extract_bit_field the value it needs (with endianness compensation) to fetch the piece we want. */ part = extract_fixed_bit_field (word_mode, value, 0, thissize, - BITS_PER_WORD - bitsize + bitsdone, + GET_MODE_BITSIZE (GET_MODE (value)) + - bitsize + bitsdone, NULL_RTX, 1, align); #else /* Fetch successively more significant portions. */ |