Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Ieee on linux/alpha
@ 1997-12-10 15:57 Harvey J. Stein
  0 siblings, 0 replies; 20+ messages in thread
From: Harvey J. Stein @ 1997-12-10 15:57 UTC (permalink / raw)


Uncle George <gatgul@voicenet.com> writes:

> kan  i ask what board/processor u r running on ?

533mhz 21164a, 164LX motherboard

   hjstein@blaster:~$ uname -a
   Linux blaster 2.0.30 #1 Wed Oct 29 18:13:23 IST 1997 alpha unknown
   hjstein@blaster:~$ cat /proc/cpuinfo 
   cpu                     : Alpha
   cpu model               : EV56
   cpu variation           : 0
   cpu revision            : 0
   cpu serial number       : Linux_is_Great!
   system type             : EB164
   system variation        : 0
   system revision         : 0
   system serial number    : MILO-0000
   cycle frequency [Hz]    : 0
   timer frequency [Hz]    : 1024.00
   page size [bytes]       : 8192
   phys. address bits      : 40
   max. addr. space #      : 127
   BogoMIPS                : 529.53
   kernel unaligned acc    : 0 (pc=0,va=0)
   user unaligned acc      : 101365 (pc=120000a24,va=120100ae2)
   hjstein@blaster:~$ 

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-12 11:35 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-12 11:35 UTC (permalink / raw)


what does "C" not want - the trap. the conversion of INF -> int. u are
gonna get an invalid operation trap for the INF ( so says the alpha ref
manual ) and not an overflow condition. since its not taken care of, the
arith results are unpredictable

Richard Henderson wrote:

> Re gcc not adding the /s suffix to cvttq with -mieee:
>
> The /s suffix is only valid for cvttq along with /v
> indicating trap on overflow, something that C does
> not want.
>
> r~
>
> --
> 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

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <349105D1.76A0AEC6@voicenet.com>]
* Re: Ieee on linux/alpha
@ 1997-12-12  9:37 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-12  9:37 UTC (permalink / raw)


the division of 1/0 -> INF . the conversion of INF to int got it a little
more upset to trap to the kernel. Its just that the "software" emulation
bit was not set for the conversion, and the kernel did nothing for/to the
trap.

Harvey J. Stein wrote:

> It seems that linux/alpha's default behavior is to signal a SIGFPE on
> divide by zero, whereas linux/intel's default behavior is to work with
> NANs, INFs & MINFs.
>
> What's the appropriate way to switch between these two behaviors?  Is
> it just a matter of adding -lieee on the link line?  What performance
> hits/benefits should I expect from doing this?
>
> --
> 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

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <348FA853.CDEE65B7@voicenet.com>]
* Re: Ieee on linux/alpha
@ 1997-12-11  8:46 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-11  8:46 UTC (permalink / raw)


so who would fix this. who else would look into this. who does the gcc/alpha port ???

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-11  0:59 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-11  0:59 UTC (permalink / raw)


Jerry Feldman wrote:

> I would probably agree here that not having the /s modifier in the cvttq instruction would be a bug if the program is compiled with the ieee option.

yup i used the mieee

> The trap instruction (eg. trapb) is not always necessary...

Thank you, but the compiler has been taught to do exactly that - a trap for each float - ugg for the mieee switch. anyway u can compile the code with the -S switch, and see for ur self what goes on with -mieee

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <m2n2i99tgs.fsf@blinky.bfr.co.il>]
* Re: Ieee on linux/alpha
@ 1997-12-10 16:42 khan
  0 siblings, 0 replies; 20+ messages in thread
From: khan @ 1997-12-10 16:42 UTC (permalink / raw)


Dear list !

yesterday i got a "brandnew" Digital Personal Workstation 433au
on my Desk. Digital Unix (not bad, especially 64 bit !) was
preinstalled on it.

I tried to install red Had Linux 4.2 on it.

Besides the fact that the machine is now broken,
after one day running,  (It can't switched on anymore,
tomorow the digital service is coming hopefully),
i didn't manage to install Linux on it.

I've got problems with the Loader MILO. It was unable to
boot it, i made it like they wrote in the Documentation,
but nothing worked.

Now i think I've got the wrong distribution, and the 433au
is not supported. 

Can someone inform me if i have to get a new
milo, or image or a new distribution ?

Thanks,

-----------------------------
Dipl. Ing. Ronald Ali-Khan 
khan@informatik.fh-hamburg.de

Hamburg, Germany

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-10 14:24 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-10 14:24 UTC (permalink / raw)


Uncle George wrote:

> 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
> >
> >
> > Still doesn't work:
> >
>
> > Ok, so now what?
> >
> > --
> >

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-10 14:17 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-10 14:17 UTC (permalink / raw)


kan  i ask what board/processor u r running on ?

Harvey J. Stein wrote:

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-10 14:13 Harvey J. Stein
  0 siblings, 0 replies; 20+ messages in thread
From: Harvey J. Stein @ 1997-12-10 14:13 UTC (permalink / raw)


Uncle George <gatgul@voicenet.com> writes:

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

If it's a compiler bug, then it's also present in egcs-1.0.  I just
tested it with egcs, and divide by zero throws a SIGFPE with & without
-mieee, even though I call ieee_set_fp_control(0) before dividing by
zero.

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-10 14:07 Uncle George
  0 siblings, 0 replies; 20+ messages in thread
From: Uncle George @ 1997-12-10 14:07 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: Ieee on linux/alpha
@ 1997-12-10 10:09 Harvey J. Stein
  0 siblings, 0 replies; 20+ messages in thread
From: Harvey J. Stein @ 1997-12-10 10:09 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <m27m9e4sou.fsf@blinky.bfr.co.il>]
* Re: Ieee on linux/alpha
@ 1997-12-09 12:17 Harvey J. Stein
  0 siblings, 0 replies; 20+ messages in thread
From: Harvey J. Stein @ 1997-12-09 12:17 UTC (permalink / raw)


Richard Henderson <rth@dot.cygnus.com> writes:

> 
> On Tue, Dec 09, 1997 at 11:40:06AM +0200, Harvey J. Stein wrote:
> > It seems that linux/alpha's default behavior is to signal a SIGFPE on
> > divide by zero, whereas linux/intel's default behavior is to work with
> > NANs, INFs & MINFs.
> 
> Yep, a mistake in RH4.2.
> 
> > What's the appropriate way to switch between these two behaviors?
> 
>    ieee_set_fp_control(0);
> 
> gets you to no exceptions signaled.  See <asm/fpu.h> for what to
> put otherwise.

This isn't working for me:

   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 test-zero.c -o test-zero
   hjstein@blaster:~/software/xlispstat-3-50$ ./test-zero
   Floating point exception (core dumped)

Could it be a RedHat 4.2 problem, or a problem with one of the patches
that's been circulating?

Thanks,

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

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <m2hg8i4zyh.fsf@blinky.bfr.co.il>]
* Ieee on linux/alpha
@ 1997-12-09  9:40 Harvey J. Stein
  0 siblings, 0 replies; 20+ messages in thread
From: Harvey J. Stein @ 1997-12-09  9:40 UTC (permalink / raw)


It seems that linux/alpha's default behavior is to signal a SIGFPE on
divide by zero, whereas linux/intel's default behavior is to work with
NANs, INFs & MINFs.

What's the appropriate way to switch between these two behaviors?  Is
it just a matter of adding -lieee on the link line?  What performance
hits/benefits should I expect from doing this?

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

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

end of thread, other threads:[~1997-12-12 11:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-10 15:57 Ieee on linux/alpha Harvey J. Stein
  -- strict thread matches above, loose matches on Subject: below --
1997-12-12 11:35 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 14:24 Uncle George
1997-12-10 14:17 Uncle George
1997-12-10 14:13 Harvey J. Stein
1997-12-10 14:07 Uncle George
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

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