Commit d8a8a4da by Richard Stallman

(apply_distributive_law): Don't mess with float arith.

From-SVN: r3317
parent df24d0da
...@@ -5526,6 +5526,12 @@ apply_distributive_law (x) ...@@ -5526,6 +5526,12 @@ apply_distributive_law (x)
rtx tem; rtx tem;
enum rtx_code inner_code; enum rtx_code inner_code;
/* Distributivity is not true for floating point.
It can change the value. So don't do it.
-- rms and moshier@world.std.com. */
if (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT)
return x;
/* The outer operation can only be one of the following: */ /* The outer operation can only be one of the following: */
if (code != IOR && code != AND && code != XOR if (code != IOR && code != AND && code != XOR
&& code != PLUS && code != MINUS) && code != PLUS && code != MINUS)
......
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