From e2041e684f68944f31b8724fbeca1653729db857 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 9 Mar 1995 17:51:37 +0000 Subject: [PATCH] Fix -msoft-float on Power. From-SVN: r9144 --- gcc/config/rs6000/rs6000.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2