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,AVR]: Tweak xor similar to ior


2012/2/23 Georg-Johann Lay <avr@gjlay.de>:
> This mini-patch extends some combine patterns that used IOR to also match
> for XOR in a similar way.
>
> Bottom line is always that when performing IOR or XOR, only portions
> in non-zero bytes matter and zero-bytes that come from zero-extends
> or shifts need not to be XORed/IORed.
>
> The patch just replaces ior with the new xior code iterator.
>
> Passes avr test suite without regressions.
>
> Ok for trunk?
>
> Johann
>
> Â Â Â Â* config/avr/avr.md (code_stdname): Add ior, xor.
> Â Â Â Â(xior): New code iterator.
> Â Â Â Â(*<code_stdname><mode>qi.byte0): Use xior instead of ior.
> Â Â Â Â(*<code_stdname><mode>qi.byte1-3): Ditto.

Please, commit.

Denis.


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