Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* denorms on the alpha
@ 1998-07-20 19:24 Greg Lindahl
  1998-07-20 20:24 ` Jim Paradis
  1998-07-20 20:37 ` Wes Bauske
  0 siblings, 2 replies; 7+ messages in thread
From: Greg Lindahl @ 1998-07-20 19:24 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-07-21  9:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-20 19:24 denorms on the alpha Greg Lindahl
1998-07-20 20:24 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox