From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f560550ec67c295e,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,f560550ec67c295e,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-11-07 05:08:00 PST Xref: gmd.de comp.unix.osf.osf1:1447 comp.sys.dec:11630 Newsgroups: comp.unix.osf.osf1,comp.sys.dec Path: gmd.de!xlink.net!sol.ctr.columbia.edu!news.kei.com!yeshua.marcam.com!zip.eecs.umich.edu!umn.edu!csus.edu!netcom.com!rfg From: rfg@netcom.com (Ronald F. Guilmette) Subject: IEEE Floating-point exceptions and traps on OSF/1.3 and Alpha Message-ID: Organization: NETCOM On-line Communication Services (408 241-9760 guest) Date: Sun, 7 Nov 1993 12:51:24 GMT 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 -------------------------------