Hi,

Is there a way to change the function return value coming in register d0 to come in reigster d7 ?

I tried adding d7 in call_used_registers and updating macro's FUNCTION_VALUE and FUNCTION_VALUE_REGNO_P but it didnt work.

I tried modifying hard_function_value function in explow.c but compilation failed at reload pass.

I am trying to update the backend code for m68k.Any help is appreciated.

Thanks and regards,
Rajat Singh