This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rtl indexed addressing mode question


On Wednesday, October 30, 2002, at 05:26 PM, Spundun Bhatt wrote:
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?
Try it, see if it works! :-) I suspect that the compiler would otherwise seem to just work, if you tried it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]