From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id DB7F52FED4 for ; Tue, 19 Sep 2000 17:09:17 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id RAA01301 for axp-list@listman.redhat.com; Tue, 19 Sep 2000 17:09:17 -0400 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA01296 for ; Tue, 19 Sep 2000 17:09:16 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.9.3/8.9.3) id PAA28958 for axp-list@redhat.com; Tue, 19 Sep 2000 15:09:14 -0600 From: Michal Jaegermann Message-Id: <200009192109.PAA28958@ellpspace.math.ualberta.ca> Subject: Re: Alpha/Linux FP denormal processing To: axp-list@redhat.com Date: Tue, 19 Sep 2000 15:09:14 -0600 (MDT) In-Reply-To: <200009192016.PAA12258@polya.math.purdue.edu> from "Brad Lucier" at Sep 19, 2000 03:16:29 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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 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