diff options
author | Torbjorn Granlund <tege@matematik.su.se> | 1998-09-19 23:44:10 +0200 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-09-19 15:44:10 -0600 |
commit | b567319fc355d00b2bb3c6f45c12e29da436930f (patch) | |
tree | 3d1c71da23b9c5afc7287d24a27491f4bf6f8f94 | |
parent | 1553cb7a6644b52d60572515bb3a6e8fbceb594f (diff) | |
download | gcc-b567319fc355d00b2bb3c6f45c12e29da436930f.zip gcc-b567319fc355d00b2bb3c6f45c12e29da436930f.tar.gz gcc-b567319fc355d00b2bb3c6f45c12e29da436930f.tar.bz2 |
fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
* fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
(_fpadd_parts): Get sign right for 0.
From-SVN: r22485
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/fp-bit.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f24eb9..bd11923 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1998-09-19 Torbjorn Granlund <tege@matematik.su.se> + + * fp-bit.c (pack_d): Do not clear SIGN when fraction is 0. + (_fpadd_parts): Get sign right for 0. + 1998-09-19 Michael Hayes <m.hayes@elec.canterbury.ac.nz> * ginclude/varargs.h: Add support for C4x target. diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index f4a1e2a..2acc385 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -460,7 +460,6 @@ pack_d ( fp_number_type * src) else if (fraction == 0) { exp = 0; - sign = 0; } else { @@ -735,7 +734,7 @@ _fpadd_parts (fp_number_type * a, { tfraction = a_fraction - b_fraction; } - if (tfraction > 0) + if (tfraction >= 0) { tmp->sign = 0; tmp->normal_exp = a_normal_exp; |