From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21889 invoked from network); 25 Jun 1998 03:24:32 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 25 Jun 1998 03:24:32 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 24 Jun 1998 22:24:49 -0500 Received: by paralleldata.com from paralleldata.com (208.252.135.77::mail daemon; unverified,SLMail V2.5); Wed, 24 Jun 1998 22:24:48 -0500 Sender: "Wsb" Message-ID: <3591C2D3.7EA4AE2B@paralleldata.com> Date: Thu, 25 Jun 1998 03:24:03 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: "axp-list@redhat.com" Subject: Floating Point Control Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I just looked at my 21164 HW reference manual. Appendix A-15 to A-16: Invalid operation - always enabled Divide by zero - always enabled Floating overflow - always enabled Underflow - can be disabled Inexact - can be disabled Integer overflow - can be disabled So, apparently some things can be controlled. It talks about how they are signaled but does not say exactly how one disables things. In my code, HW control of underflow would be helpful. In the case Richard mentioned, bad values used in a FP calculation, it's hard to say what will happen. De-normalized numbers are handled through the 'Invalid operation' exception which cannot be turned off which is most likely for random junk I think. I have algorithms though that can underflow as they recursively process an input array of FP numbers and on various systems I've used previously, there were subroutines that one could call to control how they were handled. Does anyone have an x86 manual that describes what that chip does for underflows?? Of course this can hide bugs in the program and should be used only once you know what's really wrong. One thing you could do with the BYTE benchmark that doesn't run correctly is to use gdb and run it after compiling with symbols to see where/what the problem is. I found bugs in my code that do not show up on other systems because of it's strictness with respect to input arguments to FP ops so I actually prefer the strictness for most things. Wes