summaryrefslogtreecommitdiff
path: root/gcc/config/fp-bit.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-19 21:44:10 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-19 21:44:10 +0000
commite614ae28fba80c7f9485412845796c497f121518 (patch)
tree3d1c71da23b9c5afc7287d24a27491f4bf6f8f94 /gcc/config/fp-bit.c
parent208c5069066a00f5b9fdb74614f1bacd72af80f9 (diff)
downloadgcc-e614ae28fba80c7f9485412845796c497f121518.tar.gz
* fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
(_fpadd_parts): Get sign right for 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22485 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/fp-bit.c')
-rw-r--r--gcc/config/fp-bit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c
index f4a1e2ad8fd..2acc3852dd7 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;