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: [PATCH] Use gen_lowpart_or_truncate in simplify_shift_const_1


On Tue, 7 Mar 2006, Adam Nemet wrote:
>
> 	* combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
> 	instead of gen_lowpart.

This is OK for mainline.  Thanks.

Ultimately, my preference would be that simplify_gen_unary (TRUNCATE, ...)
would be the prefered idiom for this sort of thing, generating a SUBREG if
suitable on for the target.  Does this match what you had in mind?

Roger
--


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