From: Jim Wilson Date: Wed, 26 Aug 1992 03:22:37 +0000 (-0700) Subject: (SF_MODES): Allow SImode in fp registers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7952d8fa5e1c986024456da44dfec651e9a79a1;p=gcc.git (SF_MODES): Allow SImode in fp registers. (output_floatsisf2, output_floatsidf2, output_floatsitf2): Delete. From-SVN: r1955 --- diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index a3169edef76..77aec46737c 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -1958,7 +1958,7 @@ output_scc_insn (operands, insn) #define T_MODES (~C_MODES) /* Modes for single-float quantities. */ -#define SF_MODES ((1 << (int) SFmode)) +#define SF_MODES ((1 << (int) SFmode) | (1 << (int) SImode)) /* Modes for double-float quantities. */ #define DF_MODES (SF_MODES | (1 << (int) DFmode) | (1 << (int) SCmode)) @@ -2474,45 +2474,6 @@ output_return (operands) return "ret\n\trestore"; } } - -/* Output assembler code for a SImode to SFmode conversion. */ - -char * -output_floatsisf2 (operands) - rtx *operands; -{ - if (GET_CODE (operands[1]) == MEM) - return "ld %1,%0\n\tfitos %0,%0"; - else if (FP_REG_P (operands[1])) - return "fitos %1,%0"; - return "st %r1,[%%fp-4]\n\tld [%%fp-4],%0\n\tfitos %0,%0"; -} - -/* Output assembler code for a SImode to DFmode conversion. */ - -char * -output_floatsidf2 (operands) - rtx *operands; -{ - if (GET_CODE (operands[1]) == MEM) - return "ld %1,%0\n\tfitod %0,%0"; - else if (FP_REG_P (operands[1])) - return "fitod %1,%0"; - return "st %r1,[%%fp-4]\n\tld [%%fp-4],%0\n\tfitod %0,%0"; -} - -/* Output assembler code for a SImode to TFmode conversion. */ - -char * -output_floatsitf2 (operands) - rtx *operands; -{ - if (GET_CODE (operands[1]) == MEM) - return "ld %1,%0\n\tfitoq %0,%0"; - else if (FP_REG_P (operands[1])) - return "fitoq %1,%0"; - return "st %r1,[%%fp-4]\n\tld [%%fp-4],%0\n\tfitoq %0,%0"; -} /* Leaf functions and non-leaf functions have different needs. */