Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: a cvtts/s of a denorm ->0.0
Date: Tue, 03 Oct 2000 05:22:27 -0500	[thread overview]
Message-ID: <39D9B363.50D96B34@voicenet.com> (raw)
In-Reply-To: 20001001143543.B15792@twiddle.net

I guess a much larger picture should be examined.

Shouldn't the fp results match those from the linux/i386 port ?
right now I know that a 0.0/denorm is a nan on linux/alpha. is is 0.0 on
an i386
This can be changed to look just like the i386 by setting a bit in the
FPCR register, but its not just done ( probably not even explained !)
I also remem there was a rounding switch in the gcc/egcs ( egcs more
likely ). I dont/didn't see it in help. One of those alpha rounding
modes requires both the FPCR set, as well as a bit | 2 set in the fp
instructions to get going. I'm not just sure what FP rounding mode will
give me results that are just like the i386.

So should alpha programs under alpha/linux produce the same FP results
as the i386/linux ( under the same conditions ( ie 64 bit float number
(& not the 80bit thats possible on the i386 ))
/gat

Richard Henderson wrote:

> On Fri, Sep 29, 2000 at 01:24:03PM -0500, Uncle George wrote:
> > It seems that the conversion of a double/denorm value into a
> > float/denorm gets truncated into 0.0.
>
> Of course.  That's the way rounding works.
>
> r~
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




      reply	other threads:[~2000-10-03 10:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-29 18:24 a cvtts/s of a denorm ->0.0 Uncle George
2000-10-01 21:35 ` Richard Henderson
2000-10-03 10:22   ` Uncle George [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox