Commit c0a8a3e6 by Richard Sandiford Committed by Richard Sandiford

expmed.c (extract_bit_field_1): Pass the full width of the structure to…

expmed.c (extract_bit_field_1): Pass the full width of the structure to get_best_reg_extraction_insn.

gcc/
	* expmed.c (extract_bit_field_1): Pass the full width of the
	structure to get_best_reg_extraction_insn.

From-SVN: r195692
parent 5031121c
2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
* expmed.c (extract_bit_field_1): Pass the full width of the
structure to get_best_reg_extraction_insn.
2013-02-01 David Edelsohn <dje.gcc@gmail.com> 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
PR target/54601 PR target/54601
......
...@@ -1569,7 +1569,11 @@ extract_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize, ...@@ -1569,7 +1569,11 @@ extract_bit_field_1 (rtx str_rtx, unsigned HOST_WIDE_INT bitsize,
enum extraction_pattern pattern = unsignedp ? EP_extzv : EP_extv; enum extraction_pattern pattern = unsignedp ? EP_extzv : EP_extv;
extraction_insn extv; extraction_insn extv;
if (!MEM_P (op0) if (!MEM_P (op0)
&& get_best_reg_extraction_insn (&extv, pattern, bitnum + bitsize, /* ??? We could limit the structure size to the part of OP0 that
contains the field, with appropriate checks for endianness
and TRULY_NOOP_TRUNCATION. */
&& get_best_reg_extraction_insn (&extv, pattern,
GET_MODE_BITSIZE (GET_MODE (op0)),
tmode)) tmode))
{ {
rtx result = extract_bit_field_using_extv (&extv, op0, bitsize, bitnum, rtx result = extract_bit_field_using_extv (&extv, op0, bitsize, bitnum,
......
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