mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel.crashing.org>
To: Greg Weeks <greg.weeks@timesys.com>
Cc: Dan Malek <dan@embeddededge.com>,
	Kumar Gala <kumar.gala@freescale.com>,
	LKML <linux-kernel@vger.kernel.org>,
	LinuxPPC-dev Development <linuxppc-dev@lists.linuxppc.org>
Subject: Re: [BUG] PPC math-emu multiply problem
Date: Mon, 9 Aug 2004 09:56:50 -0700	[thread overview]
Message-ID: <20040809165650.GA22109@smtp.west.cox.net> (raw)
In-Reply-To: <410A67EA.80705@timesys.com>

On Fri, Jul 30, 2004 at 11:23:22AM -0400, Greg Weeks wrote:

> Greg Weeks wrote:
> 
> >Dan Malek wrote:
> >
> >>
> >>On Jul 29, 2004, at 10:06 AM, Kumar Gala wrote:
> >>
> >>>
> >>>On Jul 29, 2004, at 8:14 AM, Greg Weeks wrote:
> >>>
> >>>>I'm seeing what appears to be a bug in the ppc kernel trap math
> >>>>emulator. An extreme case for multiplies isn't working the way gcc
> >>>>soft-float or hardware floating point is.
> >>>
> >>>
> >>
> >>I'm not surprised.  I lifted this code from Sparc, glibc, and adapted
> >>it as best I could for PPC years ago for the 8xx.  I was happy when
> >>it appeared to work for the general cases. :-)
> >>
> >>Due to its overhead, I never expected it to be _the_ solution for
> >>processors that don't have floating point hardware.  Recompiling
> >>the libraries with soft-float and using that option when compiling
> >>is the way to go.
> >
> >
> >OK, this patch fixes my multiply problem with the LSB test. I still 
> >need to test to make sure I didn't break anything else, but it appears 
> >the rounding is only used when converting back to IEEE format. Is 
> >there some reason this is something really dumb to do?
> >
> When I actually built a kernel rather than just my test code the 
> FP_ROUNDMODE is picked up from the linux/math-emu/soft-fp.h. I don't 
> want to change the common definition unless I'm sure this is the correct 
> solution.
> 
> Signed-off-by: Greg Weeks <greg.weeks@timesys.com> under TS0087

Has anyone had a problem with this?  If not, I'll go and pass it
along...

-- 
Tom Rini
http://gate.crashing.org/~trini/

  reply	other threads:[~2004-08-09 16:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 13:14 Greg Weeks
2004-07-29 14:06 ` Kumar Gala
2004-07-29 14:26   ` Greg Weeks
2004-07-29 19:22   ` Dan Malek
2004-07-29 19:47     ` La Monte H.P. Yarroll
2004-07-30 14:45     ` Greg Weeks
2004-07-30 15:23       ` Greg Weeks
2004-08-09 16:56         ` Tom Rini [this message]
2004-08-09 17:42           ` Dan Malek
2004-08-09 22:18             ` La Monte H.P. Yarroll
2004-08-09 22:23             ` Tom Rini
2004-08-16 13:02               ` Greg Weeks
2004-08-16 14:48                 ` Tom Rini
2004-08-16 18:28                   ` Greg Weeks
2004-08-16 18:35                     ` Tom Rini

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=20040809165650.GA22109@smtp.west.cox.net \
    --to=trini@kernel.crashing.org \
    --cc=dan@embeddededge.com \
    --cc=greg.weeks@timesys.com \
    --cc=kumar.gala@freescale.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.linuxppc.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®