From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24563 invoked from network); 25 Jun 1998 16:15:30 -0000 Received: from dot.cygnus.com (205.180.230.224) by mail2.redhat.com with SMTP; 25 Jun 1998 16:15:30 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.8.5/8.8.5) id JAA03438; Thu, 25 Jun 1998 09:17:49 -0700 Message-ID: <19980625091749.C3320@dot.cygnus.com> Date: Thu, 25 Jun 1998 09:17:49 -0700 From: Richard Henderson To: Jeff Sturm , axp-list@redhat.com Subject: Re: Performance measurements Reply-To: Richard Henderson References: <19980624184830.B12927@dot.cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Jeff Sturm on Thu, Jun 25, 1998 at 10:00:49AM -0400 On Thu, Jun 25, 1998 at 10:00:49AM -0400, Jeff Sturm wrote: > So what good is -mieee? Is it really intended for ill-behaved fp code? > (Sorry if this has been covered before. I've seen a lot of comments > about programs that must be compiled with -mieee without explaining WHY...) The Alpha does not handle the trickier end-cases of strict IEEE arithmetic in hardware, so as to streamline the pipeline. So if any of the inputs or the expected result of an operation are one of Inf, NaN, or denormal, the processor will signal an arithmetic exception. If the insn that trapped had the software completion bit set (/s) this fact will be reported to the kernel. Which then knows that the code was written respecting trap shadow rules and that the operation may be emulated and restarted. If /s was not set, we know right away there is no hope and send sigfpe. What -mieee does is to set /s and insert trapb insns as necessary to follow trap shadow rules. r~