diff options
author | Richard Stallman <rms@gnu.org> | 1993-01-24 01:06:11 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-01-24 01:06:11 +0000 |
commit | d8a8a4da44fcc083e644545cff4486ccbaaa8707 (patch) | |
tree | a5e46f72fd01df99dd60644ff3ee861550a6cbe3 /gcc/combine.c | |
parent | df24d0da45a930d137cc0a509b17c3d6537e873f (diff) | |
download | gcc-d8a8a4da44fcc083e644545cff4486ccbaaa8707.zip gcc-d8a8a4da44fcc083e644545cff4486ccbaaa8707.tar.gz gcc-d8a8a4da44fcc083e644545cff4486ccbaaa8707.tar.bz2 |
(apply_distributive_law): Don't mess with float arith.
From-SVN: r3317
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index b99b8e9..33bac48 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -5526,6 +5526,12 @@ apply_distributive_law (x) rtx tem; 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: */ if (code != IOR && code != AND && code != XOR && code != PLUS && code != MINUS) |