* Floating Point Control
@ 1998-06-25 3:24 Wes Bauske
1998-06-25 14:11 ` Jeff Sturm
0 siblings, 1 reply; 2+ messages in thread
From: Wes Bauske @ 1998-06-25 3:24 UTC (permalink / raw)
To: axp-list@redhat.com
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Floating Point Control
1998-06-25 3:24 Floating Point Control Wes Bauske
@ 1998-06-25 14:11 ` Jeff Sturm
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Sturm @ 1998-06-25 14:11 UTC (permalink / raw)
To: Wes Bauske; +Cc: axp-list
On Thu, 25 Jun 1998, Wes Bauske wrote:
>
> 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.
>
Well, that's what I did. After adding some initialization code the
benchmark does run without -mieee. The results are still subpar; I'll
grab a recent copy of egcs before I attempt it again.
The mystery remains of just what floating-point support is implemented in
the Linux kernel and what isn't. I'm going to put together a test to
reproduce each exception category when I get a chance, so I'll find out
what happens under different configurations.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-06-25 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-25 3:24 Floating Point Control Wes Bauske
1998-06-25 14:11 ` Jeff Sturm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox