On 4/20/23 15:03, Ajit Agarwal wrote:


Currently I support AND with const1_rtx. This is what is equivalent to zero 
extension instruction in power instruction set. When you specify many other 
constants and Could you please specify what other constants needs to be 
supported and how to determine on the Input and output modes.
x AND <constant> will result in a zero-extended representation for a variety of constants, not just 1. For example

For example x AND 3, x AND 7, x AND 15, etc.

If (const_int 1) is really that special here, then I've either completely misunderstood the intention of your patch or there's something quite special about the PPC port that I'm not aware of.

Jeff

Reply via email to