Commit 59d90212 by Jim Wilson

(fold): Don't fold X-X to 0 if X is floating point

and !flag_fast_math.

From-SVN: r7786
parent ad3a9224
...@@ -3733,8 +3733,8 @@ fold (expr) ...@@ -3733,8 +3733,8 @@ fold (expr)
Also note that operand_equal_p is always false if an operand Also note that operand_equal_p is always false if an operand
is volatile. */ is volatile. */
if (operand_equal_p (arg0, arg1, if ((! FLOAT_TYPE_P (type) || flag_fast_math)
FLOAT_TYPE_P (type) && ! flag_fast_math)) && operand_equal_p (arg0, arg1, 0))
return convert (type, integer_zero_node); return convert (type, integer_zero_node);
goto associate; goto associate;
......
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