This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH,MIPS] Add support for the R6 LSA and DLSA instructions
- From: "Moore, Catherine" <Catherine_Moore at mentor dot com>
- To: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- Cc: "'gcc-patches at gcc dot gnu dot org' (gcc-patches at gcc dot gnu dot org)" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 Jan 2015 22:45:13 +0000
- Subject: RE: [PATCH,MIPS] Add support for the R6 LSA and DLSA instructions
- Authentication-results: sourceware.org; auth=none
- References: <6D39441BF12EF246A7ABCE6654B0235320F9FF33 at LEMAIL01 dot le dot imgtec dot org>
> -----Original Message-----
> From: Matthew Fortune [mailto:Matthew.Fortune@imgtec.com]
> Sent: Monday, January 12, 2015 10:35 AM
> To: Moore, Catherine
> Cc: 'gcc-patches@gcc.gnu.org' (gcc-patches@gcc.gnu.org)
> Subject: [PATCH,MIPS] Add support for the R6 LSA and DLSA instructions
>
> This patch adds support for the R6 [D]LSA instructions. The support has been
> structured to allow MSA (when implemented) to turn on the same
> instructions as they are also added by the MSA ASE.
>
> I have continued to use the idea of 'ghost' options in the testsuite to indicate
> what features are required rather than arch revisions.
>
> Thanks,
> Matthew
>
> gcc/
>
> * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
> (mips_print_operand): Support 'y' to print exact log2 in decimal
> of a const_int.
> * config/mips/mips.h (ISA_HAS_LSA): New define.
> (ISA_HAS_DLSA): Likewise.
> * config/mips/mips.md (<GPR:d>lsa): New define_insn.
> * config/mips/predicates.md (const_immlsa_operand): New
> predicate.
>
This patch is fine.