This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA/ARM][Patch 01/02]: Thumb2 epilogue in RTL
- From: Paul Brook <paul at codesourcery dot com>
- To: Sameera Deshpande <sameera dot deshpande at arm dot com>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at linaro dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "nickc at redhat dot com" <nickc at redhat dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Mon, 7 Nov 2011 09:56:13 +0000
- Subject: Re: [RFA/ARM][Patch 01/02]: Thumb2 epilogue in RTL
- References: <4e83484c.03c7640a.2591.10bdSMTPIN_ADDED@mx.google.com> <CACUk7=WWwkZm66qcAVr7+Syn=wuc6+6qcdKh+gjwLBiYEiJMnA@mail.gmail.com> <1320659204.30897.85.camel@e102549-lin.cambridge.arm.com>
> > >+ strcpy (pattern, \"fldmfdd\\t\");
> > >+ strcat (pattern,
> > >+ reg_names[REGNO (SET_DEST (XVECEXP (operands[0], 0,
> > >0)))]); + strcat (pattern, \"!, {\");
> > >+ strcat (pattern, table[(REGNO (XEXP (XVECEXP (operands[0], 0, 1),
> > >0)) + - FIRST_VFP_REGNUM) / 2].name);
> >
> > Can't you reuse names from arm.h and avoid the table here ?
>
> The array REGISTER_NAMES in aout.h use S0, S2, ... names for double
> registers. Is there any way to use OVERLAPPING_REGISTER_NAMES? If that
> can be done, I can eliminate the table here.
You should be using %P.
Paul