Commit f8fe20b2 by Jim Wilson

(extract_bit_field): Check TRULY_NOOP_TRUNCATION before

making a SUBREG of a REG.

From-SVN: r12338
parent 7e99e494
......@@ -928,7 +928,9 @@ extract_bit_field (str_rtx, bitsize, bitnum, unsignedp,
So too extracting a subword value in
the least significant part of the register. */
if ((GET_CODE (op0) == REG
if (((GET_CODE (op0) == REG
&& TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode),
GET_MODE_BITSIZE (GET_MODE (op0))))
|| (GET_CODE (op0) == MEM
&& (! SLOW_UNALIGNED_ACCESS
|| (offset * BITS_PER_UNIT % bitsize == 0
......
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