From: Kumar Gala <galak@kernel.crashing.org>
To: David Miller <davem@davemloft.net>
Cc: lkml List <linux-kernel@vger.kernel.org>, libc-alpha@sourceware.org
Subject: math-emu issue with fp divide
Date: Wed, 4 Jun 2008 15:38:22 -0500 [thread overview]
Message-ID: <9BECB10D-536E-4242-A2F5-6E1EF8CBDB40@kernel.crashing.org> (raw)
David,
You seem to be the last person to touch the math-emu code in the
kernel so I figured you might have some insights. I'm trying to move
the powerpc math-emu code to use the include/math-emu bits.
In doing so I've been using TestFloat to see how good or bad we are
doing. For the most part the current math-emu code that PPC uses has
a number of issues that the code in include/math-emu seems to solve
(plus bugs we've had for ever that no one every realized).
Anyways, I've come across a case that we are flagging underflow and
inexact because we think we have a denormalized result from a double
precision divide:
000.FFFFFFFFFFFFF / 3FE.FFFFFFFFFFFFE
soft: 001.0000000000000 ..... syst: 001.0000000000000 ...ux
What it looks like is the results out of FP_DIV_D are:
D:
sign: 0
mantissa: 01000000 00000000
exp: -1023 (0)
The problem seems like we aren't normalizing the result and bumping
the exp. So I was wondering if you had any idea if FP_DIV_D should be
doing that or if when we call FP_PACK_DP/_FP_PACK_CANONICAL if that
could should be doing it.
thanks
- k
next reply other threads:[~2008-06-04 20:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 20:38 Kumar Gala [this message]
2008-06-04 21:37 ` David Miller
2008-06-04 21:42 ` Joseph S. Myers
2008-06-04 21:49 ` David Miller
2008-06-05 13:38 ` Kumar Gala
2008-06-13 4:24 ` David Miller
2008-06-13 15:49 ` Kumar Gala
2008-06-27 13:48 ` Kumar Gala
2008-06-27 22:54 ` David Miller
2008-06-27 14:15 ` Kumar Gala
2008-10-22 5:15 ` David Miller
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=9BECB10D-536E-4242-A2F5-6E1EF8CBDB40@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=davem@davemloft.net \
--cc=libc-alpha@sourceware.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®