This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
patch to psim for denormal values
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: patch to psim for denormal values
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Fri, 24 Mar 2000 16:08:21 -0800
gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c was sending the
sim into a very long (perhaps infinite) loop, because of this typo.
My copy of the ppc 601 user's manual correctly uses '+' here (on page
F-2).
OK to commit?
--
- Geoffrey Keating <geoffk@cygnus.com>
===File ~/patches/cygnus/sim-ppc-denormal.patch=============
2000-03-23 Geoff Keating <geoffk@cygnus.com>
* ppc-instructions (Disabled_Exponent_Underflow): Increment
the exponent when denormalizing.
Index: ppc-instructions
===================================================================
RCS file: /cvs/cvsfiles/devo/sim/ppc/ppc-instructions,v
retrieving revision 1.46
diff -p -u -u -p -r1.46 ppc-instructions
--- ppc-instructions 2000/03/02 09:24:10 1.46
+++ ppc-instructions 2000/03/24 01:53:30
@@ -4282,7 +4282,7 @@ void::function::invalid_zero_divide_oper
}
/* 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));
}
============================================================