Commit e2041e68 by Michael Meissner

Fix -msoft-float on Power.

From-SVN: r9144
parent a74853cb
...@@ -3895,7 +3895,7 @@ ...@@ -3895,7 +3895,7 @@
/* If operands[1] is a register, it may have double-precision data /* If operands[1] is a register, it may have double-precision data
in it, so truncate it to single precision. We need not do in it, so truncate it to single precision. We need not do
this for POWERPC. */ this for POWERPC. */
if (! TARGET_POWERPC && GET_CODE (operands[1]) == REG) if (! TARGET_POWERPC && TARGET_HARD_FLOAT && GET_CODE (operands[1]) == REG)
{ {
rtx newreg = reload_in_progress ? operands[1] : gen_reg_rtx (SFmode); rtx newreg = reload_in_progress ? operands[1] : gen_reg_rtx (SFmode);
emit_insn (gen_truncdfsf2 (newreg, emit_insn (gen_truncdfsf2 (newreg,
......
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