(SF_MODES): Allow SImode in fp registers.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 26 Aug 1992 03:22:37 +0000 (20:22 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 26 Aug 1992 03:22:37 +0000 (20:22 -0700)
(output_floatsisf2, output_floatsidf2, output_floatsitf2): Delete.

From-SVN: r1955

gcc/config/sparc/sparc.c

index a3169edef7693afb57e2f44a5caf3771cf1757e2..77aec46737cba5b0ebd482e14fe45499269f9197 100644 (file)
@@ -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";
-}
 \f
 /* Leaf functions and non-leaf functions have different needs.  */