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