* rs6000.md (movsf): Do not force easy FP constants into memory.

From-SVN: r28075
This commit is contained in:
Jeffrey A Law 1999-07-12 22:44:28 +00:00 committed by Jeff Law
parent 7f401c745e
commit 22e228e761
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
* rs6000.md (movsf): Do not force easy FP constants into memory.
* expr.c (expand_expr, case PLUS_EXPR): Pass constants through
immed_double_const to ensure they are properly truncated then
sign extended.

View File

@ -6145,7 +6145,8 @@
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))