aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/ppc-instructions
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
commit9ff590a53b238e5db70c7d77ed24d7d56ade622c (patch)
treec728caf5cbd2c3e997ef03ed146c312a0aacd3f6 /sim/ppc/ppc-instructions
parent1c689132b1c0864f109d63b2f6a32a10d2da2ad2 (diff)
downloadgdb-9ff590a53b238e5db70c7d77ed24d7d56ade622c.zip
gdb-9ff590a53b238e5db70c7d77ed24d7d56ade622c.tar.gz
gdb-9ff590a53b238e5db70c7d77ed24d7d56ade622c.tar.bz2
* ppc-instructions (Disabled_Exponent_Underflow): Increment
the exponent when denormalizing.
Diffstat (limited to 'sim/ppc/ppc-instructions')
-rw-r--r--sim/ppc/ppc-instructions2
1 files changed, 1 insertions, 1 deletions
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));
}