Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
Subject: floating point busted on 21164 ( 164LX ) ?
Date: Thu, 06 Nov 1997 14:38:57 -0500	[thread overview]
Message-ID: <ae1c07573971a5f59f96387afa41acf4.axp-list@archive.invalid> (raw)

This is a multi-part message in MIME format.
--------------6B30FF1A7A57BFAC8565B82C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

it seems that the noname, and a linux 486 seem to think that the floating point
operation
associated with the following pgm are the same. When it comes to the 164LX, this
result is always 0 ( ie 0x000000000000000000, the 486/noname have a 0x01 )
I am unable to get the alpha to trap ( I put printk's in the kern ), and
apparently there is another mechanism that is shafting this operation.

Any Idea's as to why the processors behave differently??????
gat

--------------6B30FF1A7A57BFAC8565B82C
Content-Type: text/plain; charset=us-ascii; name="a.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="a.c"

/*  cc -mieee -O0 -o a a.c
/*******    a.c ***********/
static double MIN = 1.42345678901234567e-45;
static union
{
	double	zd;
	float	zf;
	long	zl;
	char	*zp;
}	z;

main()
{
	static float a;
	a = (float) MIN;

/* why is a not the smallest single precision number
 * why dont I get an arith trap ( the kern has been "printk'ed ")
 * this does not fail on the noname/axp pci33 
 * it does not work on the 164LX
 */
	z.zf = a;
	printf("%f\n", a);
	printf("%p\n", z.zp);
}

--------------6B30FF1A7A57BFAC8565B82C--

-- 
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

             reply	other threads:[~1997-11-06 19:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-06 19:38 Uncle George [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-11-07 19:30 floating point busted on 21164 ( 164LX ) ? Wes Bauske
1997-11-07 21:11 Uncle George
     [not found] <346383F9.25160866@voicenet.com>
1997-11-08  6:30 ` Michal Jaegermann
1997-11-08 11:51 Uncle George
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