From: Jakub Jelinek Date: Mon, 6 Mar 2000 17:55:17 +0000 (+0100) Subject: sparc.c (eligible_for_epilogue_delay): Accept floating point instructions for epilogu... X-Git-Tag: prereleases/libstdc++-2.92~7847 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c137830fba1ab6f1ae91ad5aec71573af7023c9d;p=thirdparty%2Fgcc.git sparc.c (eligible_for_epilogue_delay): Accept floating point instructions for epilogue delay. * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept floating point instructions for epilogue delay. From-SVN: r32362 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a98ec8094ca..4cffd3b817e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-06 Jakub Jelinek + + * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept + floating point instructions for epilogue delay. + 2000-03-06 Mark Mitchell * function.c (free_temps_for_rtl_expr): Don't free slots diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 4045db26f0b4..d6dbb9737e8a 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -2394,10 +2394,20 @@ eligible_for_epilogue_delay (trial, slot) /* Otherwise, only operations which can be done in tandem with a `restore' or `return' insn can go into the delay slot. */ if (GET_CODE (SET_DEST (pat)) != REG - || REGNO (SET_DEST (pat)) >= 32 || REGNO (SET_DEST (pat)) < 24) return 0; + /* If this instruction sets up floating point register and we have a return + instruction, it can probably go in. But restore will not work + with FP_REGS. */ + if (REGNO (SET_DEST (pat)) >= 32) + { + if (TARGET_V9 && ! epilogue_renumber (&pat, 1) + && (get_attr_in_uncond_branch_delay (trial) == IN_BRANCH_DELAY_TRUE)) + return 1; + return 0; + } + /* The set of insns matched here must agree precisely with the set of patterns paired with a RETURN in sparc.md. */