This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Strange results with -mfpmath=sse
2009/5/1 Arjen Markus <arjen.markus895@gmail.com>:
> Hello Dominque,
>
> it was exactly this thread that inspired me to have a look again at this program
> (or a variant thereof - an example I have been using for in-house
> courses for the
> past couple of years). I replied to it with the test results - some
> combinations
> of flags give exactly the sort of things I would expect (not
> necessarily the ones
> I regard as correct), but this particular combination was way off!
>
> (I realised there is a bug in 10.0**i when I saw NaNs for double-precision with
> -ffloat-store, but the numbers reported here are, uh, weird)
>
Some more information: the Intel compiler with -msse -march=pentium3 does give
results in the expected range.
Regards,
Arjen