Thanks a ton Ian for pointing to the right place. I got it. Regards Ayonam 01/12/11 1750 Hrs. On 1 December 2011 12:12, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > Ayonam Ray <ayonam@xxxxxxxxx> writes: > >> The problem that I face with this is that post reload, in the CSE and >> combine passes, it looks like generating this instruction but is >> unable to allocate the scratch registers (as expected). Hence it >> fails while trying to match the constraints in post CSE (in function >> reload_cse_simplify_operands). The scratches do not match the 'r' >> constraint and hence fail. How do I prevent it from generating this >> instruction post-reload? Or is there some other solution to it? > > Look at the target hook TARGET_SECONDARY_RELOAD. > > Ian >