From: sperati <Sperati@cris.com>
Subject: UNSOLICITED JUNK E-MAIL. RETURN TO SENDER
Date: Mon, 2 Jun 1997 11:42:32 -0400 (EDT) [thread overview]
Message-ID: <2dae4a30d73556e1a3c66f7e4dc018f2.axp-list@archive.invalid> (raw)
In-Reply-To: <199706020340.UAA16094@jolt.d2.com>
On Sun, 1 Jun 1997, Daryll Strauss wrote:
> Date: Sun, 1 Jun 1997 20:40:38 -0700 (PDT)
> From: Daryll Strauss <daryll@d2.com>
> Reply-To: axp-list@redhat.com
> To: axp-list@redhat.com
> Subject: IEEE FP Problems
> Resent-Date: 2 Jun 1997 03:53:50 -0000
> Resent-From: axp-list@redhat.com
> Resent-cc: recipient list not shown: ;
>
>
> We've got a couple of IEEE floating point intensive applications that
> we're trying to run under Alpha Linux. One of the applications is a Dec
> Unix application which we don't have source to and the other is an
> in-house tools which is native under Linux. Both expect the IEEE
> behavior for floating point.
>
> There was some useful information on this topic posted to the list by
> Jim Paradis in April. I've looked through that and the kernel sources
> for traps.c, osf_sys.c, fp-emul.c, and ieee-math.c in 2.1.35. There
> seems to be several problems I'm encountering. I've made a little
> headway, but I've hit a serious stumbling block.
>
> The first thing I tried was to compile a program under Dec Unix that
> checked the state of the fp control register. Those start out being
> different. It looks like Dec Unix is clearing the bits back 0 and Linux
> isn't. I forced those bits to 0 and I made sure
> current->tss.flags&IEEE_TRAP_ENABLE_MASK=0 in
> osf_set_program_attributes.
>
> My native Dec Unix application did better, but still produced an FPE on
> some data files. I remembered Jim's comments about division by zero, and
> took a look at ieee-math.c. It looks like division by 0 returns NaN for
> 0/0, but causes and FPE for any other numerator. As a first stab I
> corrected that by returning setting *c=IEEE_PINF and returning 0 in the
> two division routines.
>
> This doesn't appear to be the right answer, because I'm always returning
> IEEE_PINF. I'm not sure of the exact IEEE spec. It seems like I should
> have to check the sign bits of the two operands and return IEEE_NINF if
> they are different. (Is that true for division by negative 0?) From
> looking at the rest of the code I don't think IEEE_NINF is ever
> returned.
>
> These changes completely solved my floating point exceptions. Now I'm
> seeing some arithmetic acceptions. So far, my testing has shown this
> as occuring in fp-emul.c in alpha_fp_emul_imprecise in the case where a
> OPC_PAL or OPC_JSR is encountered. I'm kind of baffled by this, because
> I don't know enough about the Alpha instructions and scheduling. What's
> this routine trying to do and what does the arithmetic exception really
> mean?
>
> If anyone has an suggestions for how to tackle this I'd be happy to hear
> them. I'm hoping to bundle these changes up into a patch once I get all
> the problems striaghtened out.
>
> Thanks,
> - |Daryll
>
>
> --
> 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
>
>
--
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
next parent reply other threads:[~1997-06-02 15:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199706020340.UAA16094@jolt.d2.com>
1997-06-02 15:42 ` sperati [this message]
[not found] <Pine.LNX.3.95.970602141846.7693E-100000@chomper.int.chapwin.com>
1997-06-02 21:16 ` UNSOLICITED JUNK E-MAIL. RETURN TO SENDER sperati
1997-06-02 19:49 Todd M. McGuinness
[not found] <3393175E.F5982F48@net-arts.com>
1997-06-02 19:26 ` Rick Windham
1997-06-02 21:03 ` sperati
-- strict thread matches above, loose matches on Subject: below --
1997-06-02 18:56 Jonah Giacalone
[not found] <m3u3jhw11v.fsf@spunky.virginia.edu>
1997-06-02 18:33 ` Brett McCormick
1997-06-02 17:40 Lonnie Lewis
1997-06-02 17:22 Jonah Giacalone
[not found] <199706021620.JAA19928@blirf.wtic.net>
1997-06-02 16:48 ` Jerry Feldman
1997-06-02 17:04 ` sperati
[not found] <3393013E.F49C342E@net-arts.com>
1997-06-02 16:37 ` sperati
[not found] <Pine.LNX.3.93.970602181338.1571A-100000@bean.xtdnet.nl>
1997-06-02 16:28 ` sperati
1997-06-02 16:01 Matthew Jacob
1997-06-02 16:16 ` Paul Wouters
[not found] <Pine.LNX.3.95.970602003019.3875B-100000@chomper.int.chapwin.com>
1997-06-02 15:43 ` sperati
[not found] <Pine.OSF.3.96.970602011809.6385B-100000@hcs.harvard.edu>
1997-06-02 15:43 ` sperati
[not found] <Pine.LNX.3.95.970601211628.7460A-100000@tomserver.phys.ttu.edu>
1997-06-02 15:42 ` sperati
[not found] <Pine.LNX.3.95.970601201624.4350A-100000@lacrosse.redhat.com>
1997-06-02 15:39 ` uNSOLICITED " sperati
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox