sumanth <sumanth.gundapneni@xxxxxxxxxxxxxxxxxx> writes: > Ian Lance Taylor wrote: >> >> This sort of thing is often done in the LEGITIMIZE_ADDRESS macro. Your >> case looks a bit complicated and probably requires an UNSPEC. You will >> also want to consider a constant pool. I think the SH has some cases >> like yours, but I'm not sure. >> >> Ian > > does this one(idea) related to program independent code (pic). PIC is often implemented by creating an UNSPEC in LEGITIMIZE_ADDRESS or in LEGITIMIZE_PIC_ADDRESS. See many existing examples. Ian