From patchwork Sun Jan 2 12:06:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 77180 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4002FB70D4 for ; Sun, 2 Jan 2011 23:08:16 +1100 (EST) Received: from localhost ([127.0.0.1]:52676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZMjM-00024o-Vz for incoming@patchwork.ozlabs.org; Sun, 02 Jan 2011 07:08:13 -0500 Received: from [140.186.70.92] (port=47578 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZMi6-0001de-U5 for qemu-devel@nongnu.org; Sun, 02 Jan 2011 07:06:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZMi5-0006e5-Lv for qemu-devel@nongnu.org; Sun, 02 Jan 2011 07:06:54 -0500 Received: from hall.aurel32.net ([88.191.126.93]:44227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZMi5-0006dr-Gu for qemu-devel@nongnu.org; Sun, 02 Jan 2011 07:06:53 -0500 Received: from farad.aurel32.net ([82.232.2.251] helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PZMi4-0003SC-EP; Sun, 02 Jan 2011 13:06:52 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.72) (envelope-from ) id 1PZMi2-0000XG-G5; Sun, 02 Jan 2011 13:06:50 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Sun, 2 Jan 2011 13:06:49 +0100 Message-Id: <1293970009-2028-1-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Alexander Graf , Aurelien Jarno Subject: [Qemu-devel] [PATCH] target-ppc: use float32_is_any_nan() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Use the new function float32_is_any_nan() instead of float32_is_quiet_nan() || float32_is_signaling_nan(). Cc: Alexander Graf Signed-off-by: Aurelien Jarno Reviewed-by: Nathan Froyd Acked-by: Alexander Graf --- target-ppc/op_helper.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 5ded1c1..89be0f4 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -1938,7 +1938,7 @@ target_ulong helper_dlmzb (target_ulong high, target_ulong low, uint32_t update_ /* If X is a NaN, store the corresponding QNaN into RESULT. Otherwise, * execute the following block. */ #define DO_HANDLE_NAN(result, x) \ - if (float32_is_quiet_nan(x) || float32_is_signaling_nan(x)) { \ + if (float32_is_any_nan(x)) { \ CPU_FloatU __f; \ __f.f = x; \ __f.l = __f.l | (1 << 22); /* Set QNaN bit. */ \ @@ -2283,8 +2283,7 @@ void helper_vcmpbfp_dot (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) float_status s = env->vec_status; \ set_float_rounding_mode(float_round_to_zero, &s); \ for (i = 0; i < ARRAY_SIZE(r->f); i++) { \ - if (float32_is_quiet_nan(b->f[i]) || \ - float32_is_signaling_nan(b->f[i])) { \ + if (float32_is_any_nan(b->f[i])) { \ r->element[i] = 0; \ } else { \ float64 t = float32_to_float64(b->f[i], &s); \