Commit 22e228e7 by Jeffrey A Law Committed by Jeff Law

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

From-SVN: r28075
parent 7f401c74
Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com) 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 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
immed_double_const to ensure they are properly truncated then immed_double_const to ensure they are properly truncated then
sign extended. sign extended.
......
...@@ -6145,7 +6145,8 @@ ...@@ -6145,7 +6145,8 @@
operands[1] = force_reg (SFmode, operands[1]); 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]); operands[1] = force_const_mem (SFmode, operands[1]);
if (! memory_address_p (SFmode, XEXP (operands[1], 0)) if (! memory_address_p (SFmode, XEXP (operands[1], 0))
......
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