From 485fafaa1521a5db4994ec7d26d46a531f25d21e Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 15 Sep 1994 10:45:25 -0700 Subject: [PATCH] (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 --- gcc/expmed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/expmed.c b/gcc/expmed.c index 45d0dfe93e7..715aedf91d2 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. */ -- 2.30.2