From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2359 invoked from network); 5 Sep 1998 19:55:26 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 5 Sep 1998 19:55:26 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA07031 for ; Sat, 5 Sep 1998 15:56:10 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Sat, 05 Sep 1998 14:56:39 -0500 Received: by paralleldata.com from paralleldata.com (208.252.119.214::mail daemon; unverified,SLMail V2.5); Sat, 05 Sep 1998 14:56:36 -0500 Sender: "Wsb" Message-ID: <35F19797.4ACE7995@paralleldata.com> Date: Sat, 05 Sep 1998 19:57:11 +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: Richard Henderson CC: "axp-list@redhat.com" Subject: Re: g77 problems References: <35ECC850.7721DCED@paralleldata.com> <35ED659F.10AAA5AF@treblig.org> <35EE35FB.2DD93032@paralleldata.com> <19980903174139.A32696@dot.cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Richard Henderson wrote: > > On Thu, Sep 03, 1998 at 06:23:55AM +0000, Wes Bauske wrote: > > > What happens with numbers which are so small/large that they can not > > > be normalised (sorry I can't remember the term); as far as I understood > > > they were valid numbers, but perhaps I'm confused. > > > > Underflows are set to zero according to the architecture > > It's called a "denormal". > > Underflows _may_ be set to zero. In that there is an fpcr bit that > one may set to enable this. If it isn't, the processor traps for > software emulation of the denormal, which of course looses if you > havn't compiled with -mieee. > Humm. What is the default mode for g77/gcc for undeflow, terminate or zero? Thought Alphas cannot generate denormalized outputs, at least with HW. > > If a number cannot be represented normalized, you're in > > trouble because IEEE FP format has an implied 1 bit in the > > mantissa. > > No, exponent == 0 and mantessa != 0 is a denormal, and does not > have the implied 1 bit. Yeah. That's an edge case. I usually call those things integers!! Means you need to increase your bits. If you're already at 64bit, you're in for major headaches. While '-mieee' handles these things, it is much more likely a code bug than a useful FP number. All the complaining about povray was due to bad code, not really a need for '-mieee' to get the 'right' answer. All '-mieee' usually does is mask bugs from what I've seen in my own code/other's code, and heard on this list. I would not recommend that flag in 99.99% of the cases where FP exceptions are found in code. There are always cases where it may be needed, but by far it should not be used. Course I also care how fast the code runs so practically nothing I do could tolerate the trap stuff it inserts in the assembly code. I also like getting the 'right' answer so hiding un-initialized variables and screwed up indexing is not helpful from my point of view... Wes