Target Macro for scaling addresses

Ayonam Ray ayonam@gmail.com
Tue Dec 27 09:17:00 GMT 2011


Hi,

I'm looking for a target macro or a hook by which I can tell the
optimizer that in Base + Index addressing, my hardware scales the
Index register by the size of the data being accessed and hence the
Index register increments (for subsequent accesses) should be by 1 and
not by the size of the data being accessed.

Is there something like that or do we have to do something different
in the legitimize_address target hook?

Thanks and regards
Ayonam



More information about the Gcc-help mailing list