Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpvT9-0004aE-K1 for qemu-devel@nongnu.org; Wed, 07 Nov 2007 19:42:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpvT8-0004YN-In for qemu-devel@nongnu.org; Wed, 07 Nov 2007 19:42:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpvT8-0004Y5-5h for qemu-devel@nongnu.org; Wed, 07 Nov 2007 19:42:02 -0500 Received: from relay01.mx.bawue.net ([193.7.176.67]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IpvT7-0001fP-EU for qemu-devel@nongnu.org; Wed, 07 Nov 2007 19:42:01 -0500 Date: Thu, 8 Nov 2007 00:41:57 +0000 From: Thiemo Seufer Subject: Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat Message-ID: <20071108004157.GM9561@networkno.de> References: <20071103173548.GA16847@hall.aurel32.net> <20071103180604.GA14403@caradoc.them.org> <20071103212816.GA31686@hall.aurel32.net> <1194379274.31210.100.camel@rapid> <20071107230525.GG19509@hall.aurel32.net> <20071107231201.GA3820@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071107231201.GA3820@caradoc.them.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Daniel Jacobowitz Cc: qemu-devel@nongnu.org Daniel Jacobowitz wrote: > On Thu, Nov 08, 2007 at 12:05:25AM +0100, Aurelien Jarno wrote: > > Has Thiemo already said, there is no IEEE behavior. If you look at the > > IEEE 754 document you will see that it has requirements on what should > > be supported by an IEEE compliant FPU, but has very few requirements on > > the implementation. > > If folks don't like the target conditionals there, I recommend we just > set some low bit to be sure it's a NaN and move on. I disagree. I chose on purpose the format recommended in the MIPS architecture specification. The general format seems to be commonly preferred beyond the MIPS world. > The softfloat > implementation is not all that close to matching any one hardware FPU. At least for MIPS I expect it to be close enough to real hardware. Thiemo