]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.md (movsf): Do not force easy FP constants into memory.
authorJeff Law <law@gcc.gnu.org>
Mon, 12 Jul 1999 22:42:19 +0000 (16:42 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 12 Jul 1999 22:42:19 +0000 (16:42 -0600)
X
        * rs6000.md (movsf): Do not force easy FP constants into memory.

From-SVN: r28074

gcc/config/rs6000/rs6000.md

index 10f2c0847911a18ebb269e541c608d6cd8720e4c..7a97dd1f78f01ea2fd91d1b35548f416402f160b 100644 (file)
       operands[1] = force_reg (SFmode, operands[1]);
     }
 
-  if (CONSTANT_P (operands[1]) && TARGET_HARD_FLOAT)
+  if (CONSTANT_P (operands[1]) && TARGET_HARD_FLOAT
+      && ! easy_fp_constant (operands[1], SFmode))
     {
       operands[1] = force_const_mem (SFmode, operands[1]);
       if (! memory_address_p (SFmode, XEXP (operands[1], 0))