This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rs6000: floating point cast oddities?
- From: degger at fhm dot edu
- To: dalej at apple dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 17 Dec 2001 22:14:24 +0100 (CET)
- Subject: Re: rs6000: floating point cast oddities?
- Reply-to: degger at fhm dot edu
On 17 Dec, Dale Johannesen wrote:
> (c89) The type of FP constants is in 3.1.3.1: "An unsuffixed
> floating point constant has type double."
> Promotion rules are in 3.2.1.5; after some cases that don't apply,
> "if either operand has type double, the other operand is converted
> to double."
Thanks. That makes the behaviour explainable. Though I believe that
iff it is safe to calculate in single precision we should optimize
the case. If people agree on that I'd like to figure out how complicated
it is to implement.
--
Servus,
Daniel