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] ARM optimize


On Sun, 2004-05-16 at 23:33, Richard Earnshaw wrote:
> This patch adds combiner patterns to the ARM back end to match sequences 
> such as
> 
> 	A = (B & ((1 << n) - 1) ? X : A
> 
> And
> 
> 	A = (B & C) ? X : A
> 
> where C is a legitimate ARM immediate operand.

Hmm, nearly.  In fact the patterns match

        A = (B & ((1 << n) - 1) ? X : 0

And

        A = (B & C) ? X : 0

R.


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