This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PR/13274] Fold subregs that are produced by zero_extend


On Tue, Jan 20, 2004 at 12:28:43PM +0100, Paolo Bonzini wrote:
> +		    && subreg_lsb (x) / BITS_PER_UNIT
> +		       >= GET_MODE_SIZE (GET_MODE (XEXP (elt->exp, 0))))

Better.  Use GET_MODE_BITSIZE and you don't have to divide either.

Roger, what do you think?  Were you asking him to do something like

	simplify_subreg (GET_MODE (x), elt->exp,
			 GET_MODE (elt->exp), SUBREG_BYTE (x));

?  As otherwise I can't see a way into the rtx folder at all.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]