[patch] Add new alu_type and logical_type attributes for MIPS.

Catherine Moore clm@codesourcery.com
Fri Jun 25 00:19:00 GMT 2010


Hi Richard,

This patch adds the alu_type attribute and the logical_type attribute. 
    The purpose of this patch is to lay the groundwork for the removal 
of the micromips_type attribute in the pending microMIPS patch.  Does 
this look okay to install?

Test results looked good for the mips-sde-elf target.

Thanks,
Catherine


2010-06-24  Catherine Moore  <clm@codesourcery.com>

         * config/mips/mips.md (alu_type): New attribute.
         (logical_type): New attribute.
         (type): Infer type from alu_type and logical_type.
         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
         *subsi3_extended, negsi2, negdi2, *low<mode>,
         *low<mode>_mips16): Set alu_type instead
         of type.
         (*ior<mode>3, *ior<mode>3_mips16, xor<mode>3, *nor<mode>3,
         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
         *zero_extendhi_truncqi: Set logical_type instead of type.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mips-attr-patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100625/6347594f/attachment.ksh>


More information about the Gcc-patches mailing list