(store_split_bit_field): Use number of bits in arg not
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 15 Sep 1994 17:45:25 +0000 (10:45 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 15 Sep 1994 17:45:25 +0000 (10:45 -0700)
BITS_PER_WORD to adjust arg in BYTES_BIG_ENDIAN case.

From-SVN: r8086

gcc/expmed.c

index 45d0dfe93e71bfbcc748548d865c53c3091c6776..715aedf91d2d7ca86f9cb6a88939a3937a14cd89 100644 (file)
@@ -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.  */