From: Michael Meissner Date: Thu, 9 Mar 1995 17:51:37 +0000 (+0000) Subject: Fix -msoft-float on Power. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2041e684f68944f31b8724fbeca1653729db857;p=gcc.git Fix -msoft-float on Power. From-SVN: r9144 --- diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index ae27254c440..170ae1cbbed 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -3895,7 +3895,7 @@ /* If operands[1] is a register, it may have double-precision data in it, so truncate it to single precision. We need not do 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); emit_insn (gen_truncdfsf2 (newreg,