This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: numerical results differ after irrelevant code change
- From: "Michael D. Berger" <m dot d dot berger at ieee dot org>
- To: <gcc at gcc dot gnu dot org>
- Date: Sun, 08 May 2011 11:25:13 -0400
- Subject: RE: numerical results differ after irrelevant code change
> -----Original Message-----
> From: Robert Dewar [mailto:dewar@adacore.com]
> Sent: Sunday, May 08, 2011 11:13
> To: Michael D. Berger
> Cc: gcc@gcc.gnu.org
> Subject: Re: numerical results differ after irrelevant code change
>
[...]
>
> This kind of result is quite expected on an x86 using the old
> style (default) floating-point (becauae of extra precision in
> intermediate results).
>
How does the extra precision lead to the variable result?
Also, is there a way to prevent it? It is a pain in regression testing.
Thanks,
Mike.
--
Michael D. Berger
m.d.berger@ieee.org