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] Optimize nested SIGN_EXTENDs/ZERO_EXTENDs (PR target/45336)


On 08/19/2010 06:33 PM, Jakub Jelinek wrote:
> +      /* (sign_extend:M (ashirtrt:O (ashift <X> (const_int N)) (const_int N)))
> +	 is (sign_extend:M (subreg:P <X>)) if there is mode with
> +	 GET_MODE_BITSIZE (O) - N bits.  */

Why not do the same with zero_extend and lshiftrt?  Otherwise ok.


Bernd


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