summaryrefslogtreecommitdiffstats
path: root/gcc/config/fp-bit.c
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-22 23:16:21 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-22 23:16:21 +0000
commita5b2269276e74370dffa22559666758fbd977341 (patch)
tree86fedf323ec4045a9e49d7934a5a93dbc3dcf4fa /gcc/config/fp-bit.c
parent9cfa543ceaf064aba326863c087fd3e81585c884 (diff)
downloadppe42-gcc-a5b2269276e74370dffa22559666758fbd977341.tar.gz
ppe42-gcc-a5b2269276e74370dffa22559666758fbd977341.zip
* config/fp-bit.c (pack_d): Correct the case when a denormal
is rounded up and stops being denormal. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/fp-bit.c')
-rw-r--r--gcc/config/fp-bit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c
index d433452194e..75d2ee1b31d 100644
--- a/gcc/config/fp-bit.c
+++ b/gcc/config/fp-bit.c
@@ -518,10 +518,9 @@ pack_d ( fp_number_type * src)
fraction += GARDROUND;
}
/* Perhaps the rounding means we now need to change the
- exponent. */
- if (fraction >= IMPLICIT_2)
+ exponent, because the fraction is no longer denormal. */
+ if (fraction >= IMPLICIT_1)
{
- fraction >>= 1;
exp += 1;
}
fraction >>= NGARDS;
OpenPOWER on IntegriCloud