2009/9/28 Richard Henderson <r...@redhat.com>: > On 09/28/2009 07:25 AM, Mohamed Shafi wrote: >> >> Hope someone suggests me a solution. > > The solution is almost certainly something involving the > TARGET_SECONDARY_RELOAD hook. You need to inform reload that it's going to > need some scratch registers in order to perform the operation. > > It's been a long time since I had to fiddle with this sort of thing, so I > forget all the details involved. Perhaps someone else has some additional > advice. >
Ok what i did was to remove the code from preferred_reload_class function, so that now it returns class i.e #define PREFERRED_RELOAD_CLASS(class, x) class And did in TARGET_SECONDARY_RELOAD i added the code to have a scratch register to do the move operation. Now things are working. So i guess i should as why we have PREFERRED_RELOAD_CLASS when we can do the same with TARGET_SECONDARY_RELOAD? Shafi