This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Different classes for base registers
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Tal Agmon <Tal dot Agmon at ceva-dsp dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 29 May 2007 16:53:57 +0200
- Subject: Re: Different classes for base registers
- References: <853530F948FC344697BE780237FDC391018B3AB1@speedy.corp.local>
On Tue, May 29, 2007 at 03:56:38PM +0300, Tal Agmon wrote:
> Hi,
>
> I'm working on a new target port in which there are different base
> registers
> allowed depending on the offset:
> r0-r7 are allowed as base register only when the offset is zero.
> r6-r7 are allowed as base register for every offset.
I think a new macro along the lines of MODE_CODE_BASE_REG_CLASS might do
the trick.
Perhaps this family of macros needs to be cleaned up, so you have:
RTX_BASE_REG_CLASS(x)
RTX_INDEX_REG_CLASS(x)
where x is the address expression as an RTX.
--
Rask Ingemann Lambertsen