GO_IF_LEGITIMATE_ADDRESS handling different addressing modes for load/store

Ayonam Ray ayonam@gmail.com
Wed Nov 28 18:37:00 GMT 2012


Hi,

My architecture allows base + immed and base + index for loads but
allows only base + immed for stores.  How do I differentiate between
them in the macro GO_IF_LEGITIMATE_ADDRESS?  I only get the MEM rtx in
that macro and have no clue whether the operand is an address for a
load or a store.  Is there any other way that I can differentiate
between them?

Thanks and regards
Ayonam



More information about the Gcc-help mailing list