From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <64292b9934107e5460eecbf9e426613e.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199712100948.KAA05548@pauillac.inria.fr> Date: Wed, 10 Dec 1997 09:07:52 -0500 From: Uncle George Subject: Re: Ieee on linux/alpha i get the same results. it looks like the conversion of double to int is not being handled correctly - namely the conversion ( cvttq /c ?) instruction does not have the /s ( software trap emulator ) enabled, nor is there a trap instruction after the machine instruction. this seems to be a compiler bug. Harvey J. Stein wrote: > Richard Henderson writes: > > > > hjstein@blaster:~/software/xlispstat-3-50$ gcc test-zero.c -o test-zero > > > > > > Could it be a RedHat 4.2 problem, or a problem with one of the patches > > > that's been circulating? > > > > Well it isn't going to work at all without -mieee. There've > > been several ieee bugs fixed in the kernel too, but we can't > > tell if you've got one of those yet. > > Still doesn't work: > > hjstein@blaster:~/software/xlispstat-3-50$ cat test-zero.c > main() > { > double num = 1; > double denom = 0; > > ieee_set_fp_control(0); > return( (int) num/denom); > } > hjstein@blaster:~/software/xlispstat-3-50$ gcc -mieee test-zero.c -o test-zero > hjstein@blaster:~/software/xlispstat-3-50$ ./test-zero > Floating point exception (core dumped) > > My kernel is stock > 2.0.30 + alpha-patches-2.0.30-0.2a.gz + alpha-patches-0.2-glibc2.diff > (the latter from > ftp://genie.ucd.ie/pub/alpha/kernel/alpha-patchset.tar.gz). > > Ok, so now what? > > -- > Harvey J. Stein > Berger Financial Research > hjstein@bfr.co.il > > -- > 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 -- 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