Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Alpha/Linux FP denormal processing
Date: Tue, 19 Sep 2000 15:09:14 -0600 (MDT)	[thread overview]
Message-ID: <200009192109.PAA28958@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <200009192016.PAA12258@polya.math.purdue.edu> from "Brad Lucier" at Sep 19, 2000 03:16:29 PM

Brad Lucier wrote:
> 
> Yes, this is with -mieee.  It went to e-324 with x *= 0.5, but
> only to e-308 with x /= 2.0.
> 
> Brad
> 
> > 
> > Kan i presume u used -mieee ??? 


Ok, here is a test source I am using now:

#include <stdio.h>

int main()
{
  double x = 1.0;
  for (x = 1.0; x != 0.0; x /= 2)
    printf("%e\n", x);
  return 0;
}

Compiled with gcc version 2.95.2 19991024 (release) and the following
flags '-Wall -mieee -O2' it is producing the following tail in its
output:

2.529616e-321
1.264808e-321
6.324040e-322
3.162020e-322
1.581010e-322
7.905050e-323
3.952525e-323
1.976263e-323
9.881313e-324
4.940656e-324

This time a machine is 
cpu                     : Alpha
cpu model               : EV56
system type             : Ruffian

and its kernel is 2.2.17 with the following patches, in this moment,
applied and in this order (could be important if you want avoid
too many troubles):

raid-2.2.17-A0.bz2
ide.2.2.17.all.20000904.patch.bz2
00_IO-wait-2.gz
00_SMP-scheduler-2.2.14-G.gz
00_account-failed-buffer-tries-1.gz
00_alpha-epoch-1.gz
00_alpha-read-unlock-SMP-race-1.gz
00_nanosleep-4.gz
00_set_rtc_mss-SMP-race-1.gz
00_silent-stack-overflow-4.gz
10_bigmem-2.2.18pre2-18.bz2

Comments:
 - RAID patch is from http://people.redhat.com/mingo/
   and it requires some corrections to resolve one reject
 - IDE patch is available on kernel repositories under people/hedrick
 - Other patches are from Andrea Arcangeli collection; the same location
   as above but under people/andrea
 - Aside of this one reject you will get various line offsets (not
   very surprising)

I do not see at the first glance which of these may affect a floating
point behaviour in a kernel but quite possible I miss something here.

Oh, without -mieee an output stops around e-308, as expected.

Now I have to run! :-)

One more thing.  On failed test did you use '-O2', or higher,
optimizations? Maybe some non-expanded inline stuff from headers
is significant here?  Just a thought.

  Michal




  reply	other threads:[~2000-09-19 21:09 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-16 23:58 OT: gcc on DU5 Larry Snyder
2000-09-17  1:15 ` Peter Petrakis
2000-09-17 17:26   ` J Bacher
2000-09-18  3:29 ` Peter Rival
2000-09-17 16:21   ` Larry Snyder
2000-09-17 23:15   ` Richard Henderson
2000-09-19  0:59     ` Alpha/Linux FP denormal processing Uncle George
2000-09-19  1:54       ` Brad Lucier
2000-09-19  9:29         ` Uncle George
2000-09-19 13:03           ` Greg Lindahl
2000-09-19 16:48             ` Richard Henderson
2000-09-19 14:16           ` Brad Lucier
2000-09-19 14:31             ` Uncle George
2000-09-19 16:25               ` Michal Jaegermann
2000-09-19 17:27                 ` Jeff Sturm
2000-09-19 17:43                   ` Michal Jaegermann
2000-09-19 19:10                     ` Uncle George
2000-09-19 19:30                       ` Michal Jaegermann
2000-09-19 19:46                         ` Brad Lucier
2000-09-19 20:03                           ` Uncle George
2000-09-19 20:16                             ` Brad Lucier
2000-09-19 21:09                               ` Michal Jaegermann [this message]
2000-09-19 21:48                                 ` Brad Lucier
2000-09-19 22:41                                   ` Uncle George
2000-09-20  7:00                                   ` Christian Iseli
2000-09-19 22:09                                 ` Brad Lucier
2000-09-19 22:42                                   ` Michal Jaegermann
2000-09-19 23:02                                     ` Brad Lucier
2000-09-19 23:55                                       ` Michal Jaegermann
2000-09-20  1:39                                         ` W Bauske
2000-09-20  8:24                                           ` Helge Kreutzmann
2000-09-20  0:12                                       ` Brad Lucier
2000-09-20  7:53                                       ` Uncle George
2000-09-19 20:33                           ` Michal Jaegermann
2000-09-19 16:52               ` Richard Henderson
2000-09-20  2:23                 ` Richard Henderson
2000-09-20  3:58                   ` David S. Miller
2000-09-21 21:17                     ` Richard Henderson
2000-09-21 21:50                       ` David S. Miller
2000-09-22  2:25                         ` Did MySQL ever get the port completed? Rich Peters
2000-09-22  5:27                           ` Rich Peters
2000-09-22  5:27                         ` Rich Peters
2000-09-19 12:10       ` Alpha/Linux FP denormal processing Jeff Sturm
  -- strict thread matches above, loose matches on Subject: below --
2000-09-19 21:26 Arkadiy Chapkis - Arc
2000-09-19 23:06 ` 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