This is the mail archive of the
mailing list for the GCC project.
Re: Powerpc64 long double support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Steve Munroe <sjmunroe at us dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Geoff Keating <geoffk at geoffk dot org>,Andreas Jaeger <aj at suse dot de>, Dwayne McConnell <dgm69 at us dot ibm dot com>,David Edelsohn <dje at watson dot ibm dot com>,Marcus Meissner <meissner at suse dot de>
- Date: Sat, 6 Mar 2004 21:20:33 +1030
- Subject: Re: Powerpc64 long double support
- References: <firstname.lastname@example.org>
On Fri, Mar 05, 2004 at 06:20:24PM -0600, Steve Munroe wrote:
> +/* Powerpc64 uses the AIX long double format.
> + Each long double is made up of two IEEE doubles. The value of the
> + long double is the sum of the values of the two parts. The most
> + significant part is required to be the value of the long double
> + rounded to the nearest double, as specified by IEEE. For Inf
> + values, the least significant part is required to be one of +0.0 or
> + -0.0.
Do you know why this is required for Inf? If there is a reason,
then the patch I just posted to fix -0.0 is wrong.. (In any case,
the patch is incomplete, as rs6000.md extenddftf2 also needs looking
Hmm, I can see that if you represent +Inf by (+Inf + -Inf), you're
in trouble, because converting to double will result in a Nan.
Perhaps there is some sequence of operations that will result in
(+Inf + +Inf) being turned into (+Inf + -Inf)?
> No other requirements are made; so, for example, 1.0 may be
> + represented as (1.0, +0.0) or (1.0, -0.0), and the low part of a
> + NaN is don't-care. */
IBM OzLabs - Linux Technology Centre