Commit dfb737fc by Uros Bizjak Committed by Uros Bizjak

i386.md (floating point move splitters): Fix usage of standard_80387_constant_p.

	* config/i386/i386.md (floating point move splitters): Fix
	usage of standard_80387_constant_p.
	(ix86_preferred_reload_class): Ditto.

From-SVN: r173775
parent 4d4cf144
2011-05-15 Uros Bizjak <ubizjak@gmail.com> 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (floating point move splitters): Fix
usage of standard_80387_constant_p.
(ix86_preferred_reload_class): Ditto.
2011-05-15 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*movdf_internal): Simplify insn condition. * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2011-05-14 Eric Botcazou <ebotcazou@adacore.com> 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -28489,7 +28489,7 @@ ix86_preferred_reload_class (rtx x, reg_class_t regclass) ...@@ -28489,7 +28489,7 @@ ix86_preferred_reload_class (rtx x, reg_class_t regclass)
zero above. We only want to wind up preferring 80387 registers if zero above. We only want to wind up preferring 80387 registers if
we plan on doing computation with them. */ we plan on doing computation with them. */
if (TARGET_80387 if (TARGET_80387
&& standard_80387_constant_p (x)) && standard_80387_constant_p (x) > 0)
{ {
/* Limit class to non-sse. */ /* Limit class to non-sse. */
if (regclass == FLOAT_SSE_REGS) if (regclass == FLOAT_SSE_REGS)
...@@ -3315,7 +3315,7 @@ ...@@ -3315,7 +3315,7 @@
} }
else if (FP_REG_P (r)) else if (FP_REG_P (r))
{ {
if (!standard_80387_constant_p (c)) if (standard_80387_constant_p (c) < 1)
FAIL; FAIL;
} }
else if (MMX_REG_P (r)) else if (MMX_REG_P (r))
...@@ -3347,7 +3347,7 @@ ...@@ -3347,7 +3347,7 @@
} }
else if (FP_REG_P (r)) else if (FP_REG_P (r))
{ {
if (!standard_80387_constant_p (c)) if (standard_80387_constant_p (c) < 1)
FAIL; FAIL;
} }
else if (MMX_REG_P (r)) else if (MMX_REG_P (r))
......
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