Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: "axp-list@redhat.com" <axp-list@redhat.com>
Subject: Floating Point Control
Date: Thu, 25 Jun 1998 03:24:03 +0000	[thread overview]
Message-ID: <3591C2D3.7EA4AE2B@paralleldata.com> (raw)

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


             reply	other threads:[~1998-06-25  3:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-25  3:24 Wes Bauske [this message]
1998-06-25 14:11 ` Floating Point Control Jeff Sturm
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox