From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199711061451.JAA08812@mailrelay.tiac.net> Date: Thu, 06 Nov 1997 14:38:57 -0500 From: Uncle George Subject: floating point busted on 21164 ( 164LX ) ? 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