Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: denorms on the alpha
Date: Mon, 20 Jul 1998 15:24:49 -0400 (EDT)	[thread overview]
Message-ID: <199807201924.PAA05974@cobra.cs.virginia.edu> (raw)

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 <stdio.h>

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?

-- g


             reply	other threads:[~1998-07-20 19:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-20 19:24 Greg Lindahl [this message]
1998-07-20 20:24 ` denorms on the alpha Jim Paradis
1998-07-20 20:37 ` Wes Bauske
1998-07-20 22:27   ` denorms on the alpha - confusion Phil Marsden
1998-07-20 22:18     ` Jim Paradis
1998-07-21  9:05       ` Richard Henderson
1998-07-21 10:44         ` Phil Marsden
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