From fae8209ac434a651b79bb929d27c5e8ab7d8eab1 Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Wed, 22 Mar 2000 23:16:21 +0000 Subject: fp-bit.c (pack_d): Correct the case when a denormal is rounded up and stops being denormal. * config/fp-bit.c (pack_d): Correct the case when a denormal is rounded up and stops being denormal. From-SVN: r32693 --- gcc/config/fp-bit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/config/fp-bit.c') diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index d4334521..75d2ee1 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; -- cgit v1.1