Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: FP Exceptions
Date: Tue, 01 May 2001 06:56:36 -0400	[thread overview]
Message-ID: <3AEE9664.8B77AEE@voicenet.com> (raw)
In-Reply-To: Pine.LNX.4.30.0104302230360.22797-100000@orion.chem.vt.edu

for linux 2.4.3 in arch/alpha/math-emu/math ( approx line 215 ) have a try with this
change. This should fix a conversion of a single FP denorm, into a double.
/gat
\


>                 case FOP_FNC_CVTxS:
>                         /* It is irritating that DEC encoded CVTST with
>                            SRC == T_floating.  It is also interesting that
>                            the bit used to tell the two apart is /U... */
>                         if (insn & 0x2000) {
>                                 FP_CONV(S,D,1,1,SR,DB);
>                                 goto pack_s;
>                         } else {
>                                 /* CVTST need do nothing else but copy the
>                                    bits and repack.  */
>                                 /* Not exactly,
>                                  * Conversion is from single -> double
>                                  * so vb needs to be in a 32 bit
>                                  * float form, and UNPACK'ed as such! */
>                                 vb = alpha_read_fp_reg_s(fb);
>                                 FP_UNPACK_SP(SB, &vb);
>                                 DR_c = SB_c;
>                                 DR_s = SB_s;
>                                 DR_e = SB_e;
>                                 DR_f = SB_f << ( 52 - 23 );
>
>                                 goto pack_d;
>                         }
>



>
>
>
> The problem I'm running into is when denorms are generated within optimized
> libraries like CXML (specifically the BLAS routines).  I've tried to
> c




  parent reply	other threads:[~2001-05-01 10:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.30.0104231234270.30556-100000@orion.chem.vt.edu>
2001-04-23 17:59 ` compiling kernel 2.4.3 Uncle George
2001-04-23 18:11   ` T. Daniel Crawford
2001-04-23 18:52     ` Uncle George
2001-05-01  3:23       ` FP Exceptions T. Daniel Crawford
2001-05-01  5:30         ` Greg Lindahl
2001-05-01 10:56         ` Uncle George [this message]
2001-05-01 11:52           ` T. Daniel Crawford
2001-05-01 12:23             ` Uncle George
2001-05-01 12:26               ` T. Daniel Crawford
2001-05-01 13:03                 ` Uncle George
2001-05-02 12:10                 ` Uncle George
1999-06-20 20:37 fp exceptions glenn murphy
1999-06-20 21:17 ` Wes Bauske
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