From: David Huggins-Daines <dhd@eradicator.org>
To: Bruno IGLESIAS <iglesiab@esiee.fr>
Cc: parisc-linux@parisc-linux.org
Subject: Re: [parisc-linux] Bug 72 ( Floating point problems )
Date: 09 Mar 2001 12:11:59 -0500 [thread overview]
Message-ID: <87g0gmzx28.fsf@monolith.eradicator.org> (raw)
In-Reply-To: Bruno IGLESIAS's message of "Fri, 09 Mar 2001 17:43:48 +0000"
Bruno IGLESIAS <iglesiab@esiee.fr> writes:
> The test of the Seti@client reveals lots of problems. When the
> calculation doesn't result in an illegal instruction (cf A500), the
> results are false. The kernel running was compiled on a B132L and the
> xc seems to be an old one. We now try with an newer kernel and xc.
That's likely to be either:
1) a compiler bug.
2) a problem with saving/restoring floating point state in the kernel.
3) a consequence of the mostly non-existant floating point completion
handler in the kernel. (see FIXME in arch/parisc/kernel/traps.c)
...in increasing order of likeliness.
A whole bunch of instructions are supposed to be trapped and emulated
in software, most notably the rounding instructions. We catch
co-processor traps and handle exceptions, but we don't (yet) emulate
anything, so the results of these instructions are undefined.
Part of the problem is that the details of which instructions are to
be emulated are not in the architecture manuals, but rather in the
chip manuals, and we only have these for the 7100 and 7300LC, as far
as I know.
What probably needs to be done is someone needs to take small pieces
of numeric code and track down all the operations that are throwing
traps or giving incorrect results, and fix them all individually :(
> The calculation time for the test is 56 hours. Under HPUX, it is
> about 30 hours.
That's probably to be expected for floating-point code. HP/UX has
lots of extra, super-optimized millicode to handle various low-level
FP operations.
--
David Huggins-Daines - dhd@pobox.com
http://www.pobox.com/~dhd/
next prev parent reply other threads:[~2001-03-09 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-09 17:43 [parisc-linux] Bug 72 ( Floating point problems ) Bruno IGLESIAS
2001-03-09 17:11 ` David Huggins-Daines [this message]
2001-03-13 20:50 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87g0gmzx28.fsf@monolith.eradicator.org \
--to=dhd@eradicator.org \
--cc=iglesiab@esiee.fr \
--cc=parisc-linux@parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox