From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHEiP-0000aO-Qe for qemu-devel@nongnu.org; Mon, 29 Dec 2008 04:47:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHEiP-0000a0-5x for qemu-devel@nongnu.org; Mon, 29 Dec 2008 04:47:13 -0500 Received: from [199.232.76.173] (port=35906 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHEiO-0000Zr-WD for qemu-devel@nongnu.org; Mon, 29 Dec 2008 04:47:13 -0500 Received: from savannah.gnu.org ([199.232.41.3]:57840 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHEiO-0001kT-L9 for qemu-devel@nongnu.org; Mon, 29 Dec 2008 04:47:12 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LHEiO-0003Yd-4W for qemu-devel@nongnu.org; Mon, 29 Dec 2008 09:47:12 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LHEiO-0003YZ-09 for qemu-devel@nongnu.org; Mon, 29 Dec 2008 09:47:12 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Mon, 29 Dec 2008 09:47:12 +0000 Subject: [Qemu-devel] [6139] target-ppc: improve correctness of the fsel instruction Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6139 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6139 Author: aurel32 Date: 2008-12-29 09:47:11 +0000 (Mon, 29 Dec 2008) Log Message: ----------- target-ppc: improve correctness of the fsel instruction Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-ppc/op_helper.c Modified: trunk/target-ppc/op_helper.c =================================================================== --- trunk/target-ppc/op_helper.c 2008-12-29 09:46:58 UTC (rev 6138) +++ trunk/target-ppc/op_helper.c 2008-12-29 09:47:11 UTC (rev 6139) @@ -1561,7 +1561,7 @@ farg1.ll = arg1; - if (!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) + if ((!float64_is_neg(farg1.d) || float64_is_zero(farg1.d)) && !float64_is_nan(farg1.d)) return arg2; else return arg3;