Commit 47073a38 by Kazu Hirata Committed by Kazu Hirata

* combine.c (expand_field_assignment): Use subreg_lsb().

From-SVN: r48742
parent d288e53d
2002-01-10 Kazu Hirata <kazu@hxi.com>
* combine.c (expand_field_assignment): Use subreg_lsb().
2002-01-10 David Edelsohn <edelsohn@gnu.org>
* alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
......
......@@ -5685,11 +5685,9 @@ expand_field_assignment (x)
if (GET_CODE (SET_DEST (x)) == STRICT_LOW_PART
&& GET_CODE (XEXP (SET_DEST (x), 0)) == SUBREG)
{
int byte_offset = SUBREG_BYTE (XEXP (SET_DEST (x), 0));
inner = SUBREG_REG (XEXP (SET_DEST (x), 0));
len = GET_MODE_BITSIZE (GET_MODE (XEXP (SET_DEST (x), 0)));
pos = GEN_INT (BITS_PER_WORD * (byte_offset / UNITS_PER_WORD));
pos = GEN_INT (subreg_lsb (XEXP (SET_DEST (x), 0)));
}
else if (GET_CODE (SET_DEST (x)) == ZERO_EXTRACT
&& GET_CODE (XEXP (SET_DEST (x), 1)) == 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