summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2000-03-25 18:45:41 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2000-03-25 18:45:41 +0000
commit5b605e234b5ed97f374fd80fffcad61258900763 (patch)
tree052c178dc3a034c2a2f94ae8ddc2b0d81bb7480f /sim
parenta8097088b46d448e2665168a30b424a426475c62 (diff)
downloadgdb-5b605e234b5ed97f374fd80fffcad61258900763.tar.gz
* ppc-instructions (Disabled_Exponent_Underflow): Increment
the exponent when denormalizing.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog5
-rw-r--r--sim/ppc/ppc-instructions2
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 2b324d54733..65ff71e3ae9 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-25 Geoff Keating <geoffk@cygnus.com>
+
+ * ppc-instructions (Disabled_Exponent_Underflow): Increment
+ the exponent when denormalizing.
+
Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions
index cfbac643e3a..b9a3287e388 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));
}