From 9ff590a53b238e5db70c7d77ed24d7d56ade622c Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Sat, 25 Mar 2000 18:45:41 +0000 Subject: [PATCH] * ppc-instructions (Disabled_Exponent_Underflow): Increment the exponent when denormalizing. --- sim/ppc/ChangeLog | 5 +++++ sim/ppc/ppc-instructions | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 2b324d5..65ff71e 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-25 Geoff Keating + + * ppc-instructions (Disabled_Exponent_Underflow): Increment + the exponent when denormalizing. + Thu Sep 2 18:15:53 1999 Andrew Cagney * configure: Regenerated to track ../common/aclocal.m4 changes. diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions index cfbac64..b9a3287 100644 --- a/sim/ppc/ppc-instructions +++ b/sim/ppc/ppc-instructions @@ -4282,7 +4282,7 @@ void::function::invalid_zero_divide_operation:cpu *processor, unsigned_word cia, } /* G|R|X == zero from above */ while (exp < -126) { - exp = exp - 1; + exp = exp + 1; frac_grx = (INSERTED64(EXTRACTED64(frac_grx, 0, 54), 1, 55) | MASKED64(frac_grx, 55, 55)); } -- 2.7.4