[Discuss] Test for positive gives wacko results for underflowed
values for the gcc compiler suite (including the gcc compiler,
and g77 and gfortran compilers)
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Tue Jun 26 06:17:39 PDT 2007
On 2007-06-25 20:31-0700 pw wrote:
> Alan W. Irwin wrote:
>> If the skipped normalization hypothesis is correct, gcc (or any compiler)
>> on
>> non-Intel platforms without the 80-bit registers should give correct
>> results
>> for my test case. Does anybody have test results for such platforms? Also,
>> from Peter's test it looks like the windows C compiler skips the
>> normalization step on Intel hardware, and it would be interesting to see
>> if
>> the Intel compiler also has the same issue.
>>
>
> gcc using the -fshort-double flag for compilation....
but that is a 32-bit option where all the underflow limits are quite
different. As I demonstrated yesterday you can get the same bad results for
32-bit if you pick your x and xscale values judiciously.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the Discuss
mailing list