This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
rtl indexed addressing mode question
- From: Spundun Bhatt <spundun at ISI dot EDU>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 30 Oct 2002 17:26:51 -0800
- Subject: rtl indexed addressing mode question
Hi all
I am porting gcc to a new architecture. I am using rs6000 config files
as template.
My question is,
my architecture doesnt support indexed addressing(ST R2,R3,R4) so I
wanted to remove this mode from the config.
I have located the GO_IF_LEGITIMATE_ADDRESS macro.. which in turn calls
macro LEGITIMATE_INDEXED_ADDRESS .
I am thinking of setting the later macro to 0 so it will not match the
indexed addressing mode. Now I am wondering if the gcc will auto
matically figureout that it has to add the 2 registers and then use the
base+immediate offsetting mode.. or I have to modify some other macros
too? Or if this is not the way.. then whats a good way of doing what I
have to do?
Regards
Spundun.