All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rene Rebe <rene@exactcode.de>
To: sparclinux@vger.kernel.org
Subject: sparc64 fmulq emulation glitch?
Date: Mon, 26 Jun 2006 07:02:12 +0000	[thread overview]
Message-ID: <200606260902.12375.rene@exactcode.de> (raw)

Hi all,

during some testing I accidently found fmulq that I think is emulated by
the kernel for this CPU type:

cpu             : TI UltraSparc II  (BlackBird)
fpu             : UltraSparc II integrated FPU

to not yield the corrent results for powers of two in the range [-8,+8] . For
example this tiny example:

int main ()
{
        long double a = 2;
        long double b = 1.0;
        a *= b;
        printf ("%Lf\n", a);
}

built with: gcc -m64 -mhard-quad-float

yields: 4

I tried to get thru the kernel code but have not yet garsped
all the macro magic ... Maybe someone has an idea?

(Kernel is 2.6.17-rc6)

Yours,

-- 
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
            http://exactcode.de | http://t2-project.org | http://rebe.name
            +49 (0)30 / 255 897 45

             reply	other threads:[~2006-06-26  7:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26  7:02 Rene Rebe [this message]
2006-07-08  0:28 ` sparc64 fmulq emulation glitch? David Miller
2006-07-27 23:51 ` David Miller
2006-07-31  8:31 ` Rene Rebe

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=200606260902.12375.rene@exactcode.de \
    --to=rene@exactcode.de \
    --cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.