Received: from [140.186.70.92] (port=57846 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcNNn-0006rR-Jr for qemu-devel@nongnu.org; Mon, 10 Jan 2011 14:26:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcNNm-0002KF-Hn for qemu-devel@nongnu.org; Mon, 10 Jan 2011 14:26:23 -0500 Received: from hall.aurel32.net ([88.191.126.93]:58422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcNNm-0002KB-DD for qemu-devel@nongnu.org; Mon, 10 Jan 2011 14:26:22 -0500 Date: Mon, 10 Jan 2011 20:26:20 +0100 From: Aurelien Jarno Message-ID: <20110110192620.GT17026@hall.aurel32.net> References: <1293979183-27108-1-git-send-email-aurelien@aurel32.net> <1293979183-27108-4-git-send-email-aurelien@aurel32.net> <19FE8DBC-A0E3-4D6C-A7A1-F2D5519FD561@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <19FE8DBC-A0E3-4D6C-A7A1-F2D5519FD561@suse.de> Sender: Aurelien Jarno Subject: [Qemu-devel] Re: [PATCH 3/3] target-ppc: fix sNaN propagation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Peter Maydell , QEMU Developers , Nathan Froyd On Wed, Jan 05, 2011 at 06:20:07PM +0100, Alexander Graf wrote: > > On 02.01.2011, at 15:39, 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. > > Reading through this I'm afraid I understand too little of the matter. Anyone else who's more proficient in FP feels like taking up the review? > Anybody to review this code? Nathan maybe? -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net