* IEEE Floating-point exceptions and traps on OSF/1.3 and Alpha
@ 1993-11-07 12:51 Ronald F. Guilmette
0 siblings, 0 replies; only message in thread
From: Ronald F. Guilmette @ 1993-11-07 12:51 UTC (permalink / raw)
I've been trying to do some messing about with IEEE floating-point
exceptions and traps on a DEC Alpha running OSF/1.3.
Suffice it to say that it appears that either I'm totally blowing it or
else somebody at DEC is. (I strongly suspect that it's me.)
For the life of me, and cannot seem to generate invalid operation exceptions
(*or* traps) when manipulating sNaNs on the Alpha under OSF/1.3.
Can someone please clue me in? Is this a known bug/feature of the Alpha
hardware and/or of OSF/1.3?
Basically, all I'm doing is constructing my own sNaN (via union tricks)
and then adding it to something else. This *should* generate the IEEE
"invalid operation" exception, but when I later check the corresponding
flag via:
_get_fpcr() | IEEE_STATUS_INV
I get zero. Furthermore, if I enable traps for invalid operations via:
signal (SIGFPE, my_signal_handler);
_set_fpcr (get_fpcr () | IEEE_TRAP_ENABLE_INV);
that doesn't seem to work either. What am I doing wrong?
If anyone would like to give me a clue, please send E-mail. I don't normally
read either the comp.unix.osf.osf1 group or the comp.sys.dec group.
Thanks.
--
-- Ronald F. Guilmette, Sunnyvale, California -------------------------------
------ domain address: rfg@netcom.com ---------------------------------------
------ uucp address: ...!uunet!netcom.com!rfg -------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-11-07 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-07 12:51 IEEE Floating-point exceptions and traps on OSF/1.3 and Alpha Ronald F. Guilmette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox