Re: Indexed address problem

2006-07-19 Thread Rask Ingemann Lambertsen
On Wed, Jul 19, 2006 at 02:12:09PM +0100, Saajan Singh Chana wrote: > I have defined GO_IF_LEGITIMATE_ADDRESS() to only accept indexed > addresses where the index is HImode, I was trying to get you to copy and paste your definition og GO_IF_LEGITIMATE_ADDRESS() into your message. :-) > and then

Re: Indexed address problem

2006-07-19 Thread Saajan Singh Chana
Rask Ingemann Lambertsen wrote: You are not making it easy to help you. Please tell us what makes you conclude that it isn't working reliably (error messages, code which is slower and/or larger than expected, etc) and how you tried to make it work, such as: Your definition of GO_IF_LEGITIMATE_AD

Re: Indexed address problem

2006-07-19 Thread Rask Ingemann Lambertsen
On Wed, Jul 19, 2006 at 09:44:12AM +0100, [EMAIL PROTECTED] wrote: > We are trying to write a new backend for GCC. The target machine is > 16-bit, with 24-bit pointers. However, the indexed addressing mode has a > 24-bit base and a 16-bit index, so we want to generate RTXs such as > > (mem:QI (

Indexed address problem

2006-07-19 Thread saajan . chana
Hello, We are trying to write a new backend for GCC. The target machine is 16-bit, with 24-bit pointers. However, the indexed addressing mode has a 24-bit base and a 16-bit index, so we want to generate RTXs such as (mem:QI (plus:SI (reg:HI ) (reg:SI ))) (mem:HI (plus:SI (mul