Subject: Re: standards/5150: 1.3 i386 fails "paranoia" IEEE 754 math
To: Tim Rightnour <root@garbled.net>
From: John Franklin <john@iptimaging.com>
List: netbsd-bugs
Date: 03/12/1998 10:58:47
--=====================_889736327==_
Content-Type: text/plain; charset="us-ascii"

At 09:08 AM 3/12/98 -0500, you wrote:
>
>On 12-Mar-98 John Franklin spoke unto us all:
># >That was with O2 I assume..
>#
># -O, actually.  I'll try it with -O2 tomorrow and let you know the results.
>#
># On another side note, the tests come up with a FLAW when compiled and run
># (with -O) under NetBSD/Alpha 1.3.
>
>Would you mind send-pr'ing that.. I dont have an alpha to test on  or even if
>you just post this information to the bugs group so others can see it.
>
># >Just curious.. did you get the exceptions on the 1/0 and 0/0 sections.. I
># >didn't have any problem with those..
>#
># Yes.  Both produced FLOATING POINT EXCEPTION 8.
>#
>
>It says in the docs (more the .c file) that you should "attempt to get rid of
>any exceptions"  I think that means that ideally it should run without
>generating an exception on a divide by zero.  On netbsd it performs that step
>flawlessly. (though the results differ from my AIX PPC at work.)
>
>I have a feeling that this is the fault of GCC, (or our netbsd stuff in
it) and
>not the architecture at all..  If you know anyone with a commercial x86
>compiler, have them run it and see if they get the double rounding bit.

Actually, I do at work.  I've got a copy of Symantec C++ 7.5 and several
versions of MS Visual C++.  Only 1.5 will make a DOS executable, tho.

>This is what I get for being bored.. ;)

Huh.  FreeBSD with -O2 fails completely as shown in free-o2.txt

Compiling without optimization produces the results you noticed.  (see
free-o0.txt)

I tried Symantec C++ 7.5 producing a DOS (16-bit) executable and it came up
with the same results all four times (for debug/release, and Fast Floating
Point/inline x87).  They're in symantec.txt.

MSVC 1.5 (they're last 16-bit DOS compiler) got the same "FLOATING-POINT
ERROR 8"s as for the Alpha, but also got a _POW out of range (see msvc.txt)

I also get the same results on the Alpha regardless of what optimizations I
use.  They're in alpha.txt.

jf
--=====================_889736327==_
Content-Type: application/octet-stream; name="results.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="results.tgz"

H4sIALYDCDU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FyVf5UyDieWz2BUx1L5z5kPd1e+1TAHW9b6vDbZVop+SsrhdpWHctyzcHHFbdJzm1z
WcsC5zBafv+YGG5OZXJqWE4/30oO/+DnDhf3HQVcP3pI/PmOnC+fLlyUn9l/ywFDomaILXyp0Po/
Zln3d8mym1S5uTbX5tpcm+v+62+EEMo0AFAAAA==
--=====================_889736327==_
Content-Type: text/plain; charset="us-ascii"


-- 
John Franklin                       | "It is completely buzzword compliant."
Image Processing Technologies, Inc. |     -Tom Negrino on Yellow Box
john@iptimaging.com                 |
--=====================_889736327==_--