From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2554 invoked from network); 3 Sep 1998 06:22:12 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 3 Sep 1998 06:22:12 -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 CAA10532 for ; Thu, 3 Sep 1998 02:22:58 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Thu, 03 Sep 1998 01:23:18 -0500 Received: by paralleldata.com from paralleldata.com (208.254.18.238::mail daemon; unverified,SLMail V2.5); Thu, 03 Sep 1998 01:23:16 -0500 Sender: "Wsb" Message-ID: <35EE35FB.2DD93032@paralleldata.com> Date: Thu, 03 Sep 1998 06:23:55 +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: axp-list@redhat.com Subject: Re: g77 problems References: <35ECC850.7721DCED@paralleldata.com> <35ED659F.10AAA5AF@treblig.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit David Alan Gilbert wrote: > > Wes Bauske wrote: > > > Alpha's are VERY strict with respect to arguments of FP operations. > > You cannot use un-normalized numbers! One normally gets those > > by indexing in an array incorrectly or used an un-initialized > > stack variable. If you run your code under gdb, and look at the > > arguments to the FP operation, you most likely will find a > > non-FP number. Now, if you REALLY intended to do this, you can > > use the flag '-mieee', I believe, to have SW trap and handle these > > sorts of problems. No guarantees that it will work but others > > have reported success with it. > > 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 stuff I read. Don't know about overflows. I have an algorithm that can underflow and is working correctly but haven't tried it on an Alpha so I can't say it really works from experience. You'd still have valid inputs to the FP op though. Most problems I see in code are trying to feed junk into a FP op. If a number cannot be represented normalized, you're in trouble because IEEE FP format has an implied 1 bit in the mantissa. I use 8 byte floats if I need a larger range of numbers. Most stuff I do works with 4 byte floats though. (Digital signal processing) Wes