From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1bed8f52724e1f483d3952d7255ef139.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199801131633.LAA06505@linux03.amt.tay1.dec.com> Date: Tue, 13 Jan 1998 15:11:28 -0500 From: Richard Hadsell Subject: Re: floating exception David Gilbert wrote: > > > What does -mieee do? Does it contain a library of exception handlers or does it > > turn the > > exceptions off. (I would kind of expect the kernel to handle denormals, although > > NaN's and Infinities > > I can imagine the user getting). > Specifically, this tells the compiler to generate floating > point instructions with the /s (software completion) option. > (eg. multsu $f10, $f11, $f12 # multiply registers $f10 by $f11 > (t-floating format) with software completion, underflow > enabled). If either input contains an invalid value (denormal, > NaN, ...) or the result underfloaws or is invalid, generate a > trap. The kernel should contain the appropriate code to perform > the fixup. (Note: I am not 100% sure of Linux. I am responsible > for the Digital Unix kernel floating point completion). > > So what happens without -mieee? He is seeing traps without -mieee. The point is that -mieee allows code to gracefully handle NaNs and denormalized numbers. Without it, the floating-point exception handler cannot produce a reasonable result and let the program continue. A reasonable result would be a NaN if one of the operands is a NaN, and it would probably be a 0 if a denormalized number is multiplied by something. You might have noticed that -mieee implies some other options which increase the granularity of exception context information to the instruction level. I don't know what other effects it has on the actual generated code. -- Dick Hadsell 914-381-8400 Fax: 914-381-9790 Reply-to: hadsell@blueskystudios.com Blue Sky | VIFX http://www.blueskystudios.com 1 South Road, Harrison, NY 10528 -- 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