All of lore.kernel.org
 help / color / mirror / Atom feed
* sparc64 fmulq emulation glitch?
@ 2006-06-26  7:02 Rene Rebe
  2006-07-08  0:28 ` David Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rene Rebe @ 2006-06-26  7:02 UTC (permalink / raw)
  To: sparclinux

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-31  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26  7:02 sparc64 fmulq emulation glitch? Rene Rebe
2006-07-08  0:28 ` David Miller
2006-07-27 23:51 ` David Miller
2006-07-31  8:31 ` Rene Rebe

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.