alpha.c (alpha_expand_epilogue): Don't emit the return insn.

* alpha.c (alpha_expand_epilogue): Don't emit the return insn.
        * alpha.h (EPILOGUE_USES): New.  Mark $26 live.
        * alpha.md (return): Turn into an expander.
        (return_internal): Don't use $26.
        (epilogue): Emit the return insn.

From-SVN: r31702
This commit is contained in:
Richard Henderson 2000-01-30 12:27:57 -08:00 committed by Richard Henderson
parent 51ec054c3a
commit c112e233c5
4 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,11 @@
2000-01-30 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_expand_epilogue): Don't emit the return insn.
* alpha.h (EPILOGUE_USES): New. Mark $26 live.
* alpha.md (return): Turn into an expander.
(return_internal): Don't use $26.
(epilogue): Emit the return insn.
2000-01-30 Richard Henderson <rth@cygnus.com>
* alpha.md (negtf2, abstf2): Fix word order thinko.

View File

@ -4721,9 +4721,6 @@ alpha_expand_epilogue ()
gen_rtx_REG (DImode, vms_save_fp_regno)));
}
}
/* Return. */
emit_jump_insn (gen_return_internal ());
}
/* Output the rest of the textual info surrounding the epilogue. */

View File

@ -1267,6 +1267,10 @@ struct machine_function
No definition is equivalent to always zero. */
#define EXIT_IGNORE_STACK 1
/* Define registers used by the epilogue and return instruction. */
#define EPILOGUE_USES(REGNO) ((REGNO) == 26)
/* Output assembler code for a block containing the constant parts
of a trampoline, leaving space for the variable parts.

View File

@ -3984,17 +3984,13 @@
"br $31,%l0"
[(set_attr "type" "ibr")])
(define_insn "return"
(define_expand "return"
[(return)]
"direct_return ()"
"ret $31,($26),1"
[(set_attr "type" "ibr")])
"")
;; Use a different pattern for functions which have non-trivial
;; epilogues so as not to confuse jump and reorg.
(define_insn "return_internal"
[(use (reg:DI 26))
(return)]
(define_insn "*return_internal"
[(return)]
""
"ret $31,($26),1"
[(set_attr "type" "ibr")])
@ -5431,9 +5427,9 @@
"mov %1,%0")
(define_expand "epilogue"
[(clobber (const_int 0))]
[(return)]
""
"alpha_expand_epilogue (); DONE;")
"alpha_expand_epilogue ();")
(define_expand "eh_epilogue"
[(use (match_operand:DI 0 "register_operand" "r"))