Commit 9033081d by Jim Wilson

(store_split_bit_field): For BYTES_BIG_ENDIAN, only

pad on left if value not in memory.

From-SVN: r6429
parent 648a09ee
...@@ -721,11 +721,19 @@ store_split_bit_field (op0, bitsize, bitpos, value, align) ...@@ -721,11 +721,19 @@ store_split_bit_field (op0, bitsize, bitpos, value, align)
>> (bitsize - bitsdone - thissize)) >> (bitsize - bitsdone - thissize))
& (((HOST_WIDE_INT) 1 << thissize) - 1)); & (((HOST_WIDE_INT) 1 << thissize) - 1));
else else
/* The args are chosen so that the last part {
includes the lsb. */ /* The args are chosen so that the last part
part = extract_fixed_bit_field (word_mode, value, 0, thissize, includes the lsb. */
BITS_PER_WORD - bitsize + bitsdone, int bit_offset = 0;
NULL_RTX, 1, align); /* If the value isn't in memory, then it must be right aligned
if a register, so skip past the padding on the left. If it
is in memory, then there is no padding on the left. */
if (GET_CODE (value) != MEM)
bit_offset = BITS_PER_WORD - bitsize;
part = extract_fixed_bit_field (word_mode, value, 0, thissize,
bit_offset + bitsdone,
NULL_RTX, 1, align);
}
#else #else
/* Fetch successively more significant portions. */ /* Fetch successively more significant portions. */
if (GET_CODE (value) == CONST_INT) if (GET_CODE (value) == CONST_INT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment