From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=37945 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGciB-00060d-4B for qemu-devel@nongnu.org; Thu, 11 Nov 2010 14:21:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGci9-0008Dm-6z for qemu-devel@nongnu.org; Thu, 11 Nov 2010 14:21:30 -0500 Received: from mail.codesourcery.com ([38.113.113.100]:51948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGci8-0008A3-V8 for qemu-devel@nongnu.org; Thu, 11 Nov 2010 14:21:29 -0500 Date: Thu, 11 Nov 2010 14:21:06 -0500 From: Nathan Froyd Subject: Re: [Qemu-devel] [PATCH 4/8] ARM: Return correct result for float-to-integer conversion of NaN Message-ID: <20101111192104.GA4826@nightcrawler> References: <1289499842-28818-1-git-send-email-peter.maydell@linaro.org> <1289499842-28818-5-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289499842-28818-5-git-send-email-peter.maydell@linaro.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org On Thu, Nov 11, 2010 at 06:23:58PM +0000, Peter Maydell wrote: > The ARM architecture mandates that converting a NaN value to > integer gives zero. This isn't the behaviour of the SoftFloat > library, so NaNs must be special-cased. This is correct, but it's really only correct if FP traps are disabled. (Also, the arm routines returning float* values is just awful. Not your fault, just a comment.) -Nathan