From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34441 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdQxK-0003JQ-P5 for qemu-devel@nongnu.org; Thu, 13 Jan 2011 12:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdQxJ-0000AN-Oi for qemu-devel@nongnu.org; Thu, 13 Jan 2011 12:27:26 -0500 Received: from mail.codesourcery.com ([38.113.113.100]:42651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdQxJ-0000AC-F1 for qemu-devel@nongnu.org; Thu, 13 Jan 2011 12:27:25 -0500 Date: Thu, 13 Jan 2011 09:27:22 -0800 From: Nathan Froyd Message-ID: <20110113172718.GM6247@codesourcery.com> References: <1294857768-22871-1-git-send-email-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1294857768-22871-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] Re: [PATCH v2 1/2] target-ppc: fix sNaN propagation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: Peter Maydell , qemu-devel@nongnu.org, Alexander Graf On Wed, Jan 12, 2011 at 07:42:47PM +0100, Aurelien Jarno wrote: > The current FPU code returns 0.0 if one of the operand is a > signaling NaN and the VXSNAN exception is disabled. > > fload_invalid_op_excp() doesn't return a qNaN in case of a VXSNAN > exception as the operand should be propagated instead of a new > qNaN to be generated. Fix that by calling fload_invalid_op_excp() > only for the exception generation (if enabled), and use the softfloat > code to correctly compute the result. > > Cc: Alexander Graf > Cc: Peter Maydell > Cc: Nathan Froyd > Signed-off-by: Aurelien Jarno Reviewed-by: Nathan Froyd -Nathan