Re: How to write legitimize_reload_address

2010-01-22 Thread Jeff Law
On 01/22/10 07:10, Mohamed Shafi wrote: Hi all, I am doing a port of a 32bit target in GCC 4.4.0. I have written the macro legitimize_reload_address which does something similar to what the target pa does. i.e For the PA, transform: memory(X +) into: if ( & mask)>=

How to write legitimize_reload_address

2010-01-22 Thread Mohamed Shafi
Hi all, I am doing a port of a 32bit target in GCC 4.4.0. I have written the macro legitimize_reload_address which does something similar to what the target pa does. i.e For the PA, transform: memory(X + ) into: if ( & mask) >= 16 Y = ( & ~mask) + mask + 1 Roun