Commit e7952d8f by Jim Wilson

(SF_MODES): Allow SImode in fp registers.

(output_floatsisf2, output_floatsidf2, output_floatsitf2): Delete.

From-SVN: r1955
parent e939539b
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment