"return" expander

Momchil Velikov velco@fadata.bg
Sun Jul 28 18:24:00 GMT 2002


>>>>> "Momchil" == Momchil Velikov <velco@fadata.bg> writes:

Momchil> The return insn on v850 is ``jmp [r31]''.  I have a case with a
Momchil> function where r31 is allocated and the jump at the end of the
Momchil> function jumps to nowhere.  I guess the ``return'' pattern should make
Momchil> ``r31'' live at the end so it is either saved/restored or not
Momchil> allocated. I've tried with

Momchil> What is the proper way to describe insn like these ?

Looks like ``(define_expand "return" [(set (pc) (reg:SI 31))] ...)''
did the trick ...

~velco



More information about the Gcc mailing list