Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
Subject: Re: Ieee on linux/alpha
Date: Wed, 10 Dec 1997 09:07:52 -0500	[thread overview]
Message-ID: <64292b9934107e5460eecbf9e426613e.axp-list@archive.invalid> (raw)

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 <rth@dot.cygnus.com> 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

             reply	other threads:[~1997-12-10 14:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-10 14:07 Uncle George [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-12-12 11:35 Ieee on linux/alpha Uncle George
     [not found] <349105D1.76A0AEC6@voicenet.com>
1997-12-12  9:40 ` Richard Henderson
1997-12-12  9:37 Uncle George
     [not found] <348FA853.CDEE65B7@voicenet.com>
1997-12-11 17:33 ` Richard Henderson
1997-12-11  8:46 Uncle George
1997-12-11  0:59 Uncle George
     [not found] <m2n2i99tgs.fsf@blinky.bfr.co.il>
1997-12-10 17:54 ` Jerry Feldman
1997-12-10 16:42 khan
1997-12-10 15:57 Harvey J. Stein
1997-12-10 14:24 Uncle George
1997-12-10 14:17 Uncle George
1997-12-10 14:13 Harvey J. Stein
1997-12-10 10:09 Harvey J. Stein
     [not found] <m27m9e4sou.fsf@blinky.bfr.co.il>
1997-12-09 17:02 ` Michal Jaegermann
1997-12-09 17:52 ` Richard Henderson
1997-12-09 12:17 Harvey J. Stein
     [not found] <m2hg8i4zyh.fsf@blinky.bfr.co.il>
1997-12-09 11:15 ` Richard Henderson
1997-12-09 16:48 ` Michal Jaegermann
1997-12-09  9:40 Harvey J. Stein
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