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 8-bit parity expansion


2011/10/28 Georg-Johann Lay <avr@gjlay.de>:
> This is minor tweak to support 8-bit parity.
>
> Otherwise, the input operand of 8-bit values will be extended before parity
> computation.
>
> The final representation as libgcc call is not generated in split1 and no more
> in expand. Notice that
>
> - combine is not allowed to propagate hard regs into zero-extends.
> - combine does not try parity:QI
>
> Ok for trunk?
>
> Johann
>
> Â Â Â Â* config/avr/avr.md (parityhi2): Expand allowing pseudos.
> Â Â Â Â(*parityhi2): New pre-reload insn-and-split to map 16-bit parity
> Â Â Â Âto the libgcc insn.
> Â Â Â Â(*parityqihi2): Same for 8-bit parity.
>

Approved.

Denis.


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