This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use gen_lowpart_or_truncate in simplify_shift_const_1
- From: Roger Sayle <roger at eyesopen dot com>
- To: Adam Nemet <anemet at caviumnetworks dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 8 Mar 2006 22:16:23 -0700 (MST)
- Subject: 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
--