[PATCH] AVR: take 3: implement HI/SI logic operations and sign/zero extension by define_insn_and_split

Björn Haase bjoern.m.haase@web.de
Thu May 5 22:59:00 GMT 2005


Hi,

in this third version of the splitting patch, I now have removed a bug in the 
xor-Patterns that showed up in rare occasions for bitfield operations (they 
used to generate nested subreg expressions). I also have cleaned up the 
patterns a bit so that they now are more compliant with the gcc coding style.

Yours,

Björn


2005-05-05  Bjoern Haase  <bjoern.m.haase@web.de>

        * config/avr/avr.md: 
        add define_constants 
        (UNSP_STRLENHI): add define_constant
        (UNSP_READ_PMEM): add define_constant
        (UNSP_GEN_SIGN): add define_constant
        (*generate_extension_byte): add
        (strlenhi): use UNSP_STRLENHI
        (andhi3): replace define_insn by define_insn_and_split 
        (andsi3): Likewise.
        (iorhi3): Likewise.
        (*iorhi3_clobber): Likewise.
        (iorsi3): Likewise. 
        (*iorsi3_clobber): Likewise.
        (xorhi3): replace define_insn by define_expand
        (xorsi3): Likewise.
        (extendqihi2): replace define_insn by define_insn_and_split
        (extendqisi2): Likewise.
        (extendhisi2): Likewise.
        (zero_extendqihi2): Likewise.
        (zero_extendqisi2): Likewise.
        (zero_extendhisi2): Likewise.
        (*tablejump_rjmp): use UNSP_READ_PMEM
        (*tablejump_enh): Likewise.
        (*tablejump): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: splitting_patch
Type: text/x-diff
Size: 25430 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050505/63564ded/attachment.bin>


More information about the Gcc-patches mailing list