This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tighten mips16 patterns for $31
- From: Eric Christopher <echristo at redhat dot com>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 06 Oct 2003 10:24:24 -0700
- Subject: Re: Tighten mips16 patterns for $31
- References: <wvnhe2mzt8k.fsf@talisman.cambridge.redhat.com>
On Mon, 2003-10-06 at 01:05, Richard Sandiford wrote:
> This patch tweaks the mips16 patterns for saving $31. The old DImode
> pattern was too general (it allowed any address, not just stack addresses)
> and the SImode one was too specific (it didn't allow ($sp)).
>
> This is needed by a patch I'll post soon.
>
> Tested on mips64vrel-elf etc. OK to install?
>
>
> * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
> * config/mips/mips.c (stack_operand): New predicate.
> * config/mips/mips.md: Use it for the destination of mips16 insns
> that store $31.
OK.
-eric
--
Eric Christopher <echristo@redhat.com>