Illegal insn due to system register

Rakesh Kumar - Software, Noida rakeshku@noida.hcltech.com
Wed May 21 07:26:00 GMT 2003


> I've attached the patch I'v just checked in to fix this.

Thanks for the reply and the fix. It is working fine with
BUG.i. But I could not understand why you are returning 9
from the function sh_register_move_cost. In any case, the insn
moving MACL to FP register, or otherwise, is illegal, 
and it should be prevented. Let me know if this fix could
fail in any unfavourable condition.

> When you handle vector moves, you have to decompose them at
> some point into individual register loads / stores.
> The generic code uses integer modes for this purpose; if
> we don't allow these modes in flaoting point registers,
> that means FP vectors would be moved through general purpuse
> registers for loads, stores and copies.

As far as I know, only SH5 has vector moves. Why are we required
to handle them for SH4 and other targets?
	
Best regards,
Rakesh Kumar.



More information about the Gcc-bugs mailing list