From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32432 invoked from network); 8 Mar 1999 21:53:28 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Mar 1999 21:53:28 -0000 Received: from mail11.digital.com (mail11.digital.com [192.208.46.10]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA21561 for ; Mon, 8 Mar 1999 16:47:25 -0500 Received: from perf.zko.dec.com (perf.zko.dec.com [16.31.144.83]) by mail11.digital.com (8.9.2/8.9.2/WV2.0e) with ESMTP id QAA17194 for ; Mon, 8 Mar 1999 16:48:28 -0500 (EST) Received: from localhost by perf.zko.dec.com (8.8.8/1.1.10.5/07Mar97-1056AM) id QAA0000015126; Mon, 8 Mar 1999 16:47:24 -0500 (EST) Date: Mon, 8 Mar 1999 16:47:24 -0500 (EST) From: Phillip Ezolt To: axp-list@redhat.com Subject: Re: SIGFPE error on exponential underflow in g77 In-Reply-To: <199903082013.PAA16242@adder.cs.Virginia.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Well, If it's broken, let's fix it. How does the complier tell the library that the code was compiled with -mieee? What isn't it doing the right thing, and what exactly IS the right thing? In an ideal world: 1) program compiled with -mieee Slow, but can handle denorms correctly. 2) program compiled without -mieee. Fast, but rounds to zero on small numbers. To get rid of the FPEs associated with denorms, we can either 1) Never Generate them 2) Once generated, handle them with kid gloves. libffm, and libcplm does the first. It seems that libm does the second, assuming gcc/egcs will generate codes to handle the denorms. If this is really the way to go, it looks like a compiler bug. Comments? --Phil Digital/Compaq: High Performance Servers/Benchmark Performance Engineering Phillip.Ezolt@compaq.com ezolt@perf.zko.dec.com On Mon, 8 Mar 1999, Greg Lindahl wrote: > > Isn't that what -mieee is supposed to do? > > Yes. But today the library ignores -mieee; libm always returns denorms > and libcpml and libffm never return denorms. Whoops. > > -- g > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > >