From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24667 invoked from network); 20 Jul 1998 20:34:08 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 20 Jul 1998 20:34:08 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Mon, 20 Jul 1998 15:34:29 -0500 Received: by paralleldata.com from paralleldata.com (208.252.135.44::mail daemon; unverified,SLMail V2.5); Mon, 20 Jul 1998 15:34:27 -0500 Sender: "Wsb" Message-ID: <35B3AA80.F4A2B35@paralleldata.com> Date: Mon, 20 Jul 1998 20:37:20 +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: denorms on the alpha References: <199807201924.PAA05974@cobra.cs.virginia.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Greg Lindahl wrote: > > I've been beating on my people claiming kernel bugs on the alphas and > I've found that at least some of their fp exceptions are derministic > and are due to denormalized values. For example: > > #include > > main () { > > union { > long long i; > double f; > } bob; > > bob.i = 2725351540; > printf ("The value is %g.\n", bob.f ); > > bob.f *= 2; > > printf ("The value is %g.\n", bob.f ); > } > > This program crashes when I multiply a denorm by 2. Is it the case > under Linux/Alpha that denorms should never be generated and cause fp > exceptions when you do any operations with them? > The HW manual I looked at says this is not maskable. It will always interrupt. The more common case is a FP array being overwritten by something non-FP and then attempting to do FP ops on it, or a non-initialized stack variable being used. All cases I've found in my code and others this was a bug in the code, not an intended calculation. Intel seems to just treat this as a real small number, effectively zero, so it has little effect on the FP op, except maybe if you try divide by one. I think Uncle George had a case where he thought it was a valid calculation but I haven't. A bug is a bug. If it were my code, I'd just fix it. Only other choice is to slow down the code with -mieee. Wes