Re: Implementing a restrictive addressing mode for a gcc port

2008-05-16 Thread Mohamed Shafi
On Tue, Apr 1, 2008 at 2:10 AM, Jim Wilson <[EMAIL PROTECTED]> wrote: > Mohamed Shafi wrote: >> >> For the source or the destination register Rd/Ra, the restriction is >> that it should be one more than the base register . So the following >> instructions are valid: > > GCC doesn't provide any easy

Re: Implementing a restrictive addressing mode for a gcc port

2008-03-31 Thread Jim Wilson
On Tue, 2008-04-01 at 09:48 +0530, Mohamed Shafi wrote: > What i did was to have 8 register class with each class having two > registers, an even register and an odd register then in define expand > look for the register indirect with offset addressing mode and emit > gen_store_offset or gen_load_o

Re: Implementing a restrictive addressing mode for a gcc port

2008-03-31 Thread Mohamed Shafi
On Tue, Apr 1, 2008 at 2:10 AM, Jim Wilson <[EMAIL PROTECTED]> wrote: > Mohamed Shafi wrote: > > For the source or the destination register Rd/Ra, the restriction is > > that it should be one more than the base register . So the following > > instructions are valid: > > GCC doesn't provide any

Re: Implementing a restrictive addressing mode for a gcc port

2008-03-31 Thread Jim Wilson
Mohamed Shafi wrote: For the source or the destination register Rd/Ra, the restriction is that it should be one more than the base register . So the following instructions are valid: GCC doesn't provide any easy way for the source address to depend on the destination address, or vice versa.