From patchwork Fri May 11 00:43:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135452 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp249669lji; Thu, 10 May 2018 17:53:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZom8a3UivsNWnWC4hAFXESFaNG3ZKFx8pHuJq0CB3Bl3m6R//vDge+Bep/9HHXFZf8QkyHS X-Received: by 2002:a37:8d01:: with SMTP id p1-v6mr3267990qkd.268.1525999991466; Thu, 10 May 2018 17:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525999991; cv=none; d=google.com; s=arc-20160816; b=drpVmCoPDYaSWDaNsOujAkBwkDyxDxpVnqVuvD5vQ1/VLikEGG9stWJ4M3WSu67CuR MsWhCAGIjfufkf5/R6JSqx5wv0CQ9DWXg4zLbgIxWAbwD8eQYWb7Dbmp5dIT6Q87z0CH HQvQpWtAHtO7AX2K441OUGMkdYa/7j7gT6ymF+IUTU/HKaeSQblqM7MZm4ZH8Dfx1Nf0 WHi/cAv2QBTpXYc3NgKAkLRoT7uI3y0XZ5UlJjGWfTezVSbCYp5iNrU9q8b5uWsRPY3v 1NX3geX35KbVctERwpitdulWd3TleP+9c4Cm+TXS59y0jKXLy9HUrhiju4wDhlzuP5mJ LK7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=SCZeWxjt5hVIQH0cvw2AGs0OE90+4Z8czdb6XdGmI08=; b=dXoJk2/i6ZQcEG42UduN3lxgvx9CvuU+cZrVl3ogXoP5lFNUrUcquHhclb67qpgTdZ wizby19YK2Bzw6EYX2Fnn8lFAMtnr9WA+8CjKEVlkjfzG0euLDCLdiEGmamcZcV4R5/Z SbNdE+tGKPr02iqNrqYHx8fMyheRwhee/kttr5dUQg2qrtBhjKKLE4QmSTxJJ/8q+Dfk ztBh9X+djZPoxuxErv3PXAvUUzTClpXMQPRjZ9SyjwlZfXtCFu7x2S/h5cQtRNtj8uwQ 82BA8+gSjC/eC9nvjWOcZPRvdlVx7aHGv4SOO/I98oq6z+lktqDM9uXfulQxpUCkQw86 rHiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=U51LXA5B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z36-v6si2048313qtz.320.2018.05.10.17.53.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=U51LXA5B; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwJ4-00018U-So for patch@linaro.org; Thu, 10 May 2018 20:53:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwAE-0007D0-Gv for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGwAC-0004qu-OZ for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:02 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:38915) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGwAC-0004qg-JB for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:00 -0400 Received: by mail-pl0-x241.google.com with SMTP id c19-v6so2262115pls.6 for ; Thu, 10 May 2018 17:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SCZeWxjt5hVIQH0cvw2AGs0OE90+4Z8czdb6XdGmI08=; b=U51LXA5BJbGeuwcALE0ikP6QCN8NJlKPk54PwtuKM4wTfjjnQk5lrQx/ObOw5lCt/z AiEnnWkBkrRqNpL/9NW8IwA7yEr3Dg+/1A4/AvyWtzj5D0F0wrF+AiLTAR3iuiuQIF4c 6HPwsSkLhkCBZ1Zp9HeU81sDr3sFbk1l2HIDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SCZeWxjt5hVIQH0cvw2AGs0OE90+4Z8czdb6XdGmI08=; b=KnSZ/2pjSB0mEFIYEvKUaOeyRwdkmK3M4vwcNfJXALrYJuHUPZdubUnPrI0fgwYSqL jpcRJiRSUEu0N7beR6v5GIpXNHSyhllT6xoinIJDd8kcYFhhzZc+vncBy/qUUwFPaTj+ ZIw7ZV9WATDH410yIA/y0kV4dh+6CD0bQynn94ffbW2PMnugB3jQxPVOKmFGcjcaq2tm RgyJmyYiKgayucK3fRyKVIQEpq+cc6xOx8cvBOsRl6KJXDRgjbMeiOs8C6jLld+495/5 HIsxU12r3jDC1azVVg9uOO7f8pfvEwyKhK2FTyhyrGCbK3EX5BW7+OnJ9PJid3795nau 593Q== X-Gm-Message-State: ALKqPweA2xt5xvhQVEUT8wCgb2sFoRCwX1YG0nzTt9PCvyJ9VgwfiuZY 62zt2tN6HwKhri+j4XpiLIER+UZeSwA= X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr3248958plb.299.1525999439240; Thu, 10 May 2018 17:43:59 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id y24-v6sm4216728pfn.23.2018.05.10.17.43.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:43:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:34 -0700 Message-Id: <20180511004345.26708-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511004345.26708-1-richard.henderson@linaro.org> References: <20180511004345.26708-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::241 Subject: [Qemu-devel] [PATCH 08/19] target/arm: Use floatX_silence_nan when we have already checked for SNaN X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 6 +++--- target/arm/helper.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) -- 2.17.0 diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index afb25ad20c..976eaba37a 100644 --- a/target/arm/helper-a64.c +++ b/target/arm/helper-a64.c @@ -366,7 +366,7 @@ float16 HELPER(frecpx_f16)(float16 a, void *fpstp) float16 nan = a; if (float16_is_signaling_nan(a, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float16_maybe_silence_nan(a, fpst); + nan = float16_silence_nan(a, fpst); } if (fpst->default_nan_mode) { nan = float16_default_nan(fpst); @@ -395,7 +395,7 @@ float32 HELPER(frecpx_f32)(float32 a, void *fpstp) float32 nan = a; if (float32_is_signaling_nan(a, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float32_maybe_silence_nan(a, fpst); + nan = float32_silence_nan(a, fpst); } if (fpst->default_nan_mode) { nan = float32_default_nan(fpst); @@ -424,7 +424,7 @@ float64 HELPER(frecpx_f64)(float64 a, void *fpstp) float64 nan = a; if (float64_is_signaling_nan(a, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float64_maybe_silence_nan(a, fpst); + nan = float64_silence_nan(a, fpst); } if (fpst->default_nan_mode) { nan = float64_default_nan(fpst); diff --git a/target/arm/helper.c b/target/arm/helper.c index a5f3d3b7e5..3065045e0c 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11679,7 +11679,7 @@ float16 HELPER(recpe_f16)(float16 input, void *fpstp) float16 nan = f16; if (float16_is_signaling_nan(f16, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float16_maybe_silence_nan(f16, fpst); + nan = float16_silence_nan(f16, fpst); } if (fpst->default_nan_mode) { nan = float16_default_nan(fpst); @@ -11727,7 +11727,7 @@ float32 HELPER(recpe_f32)(float32 input, void *fpstp) float32 nan = f32; if (float32_is_signaling_nan(f32, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float32_maybe_silence_nan(f32, fpst); + nan = float32_silence_nan(f32, fpst); } if (fpst->default_nan_mode) { nan = float32_default_nan(fpst); @@ -11775,7 +11775,7 @@ float64 HELPER(recpe_f64)(float64 input, void *fpstp) float64 nan = f64; if (float64_is_signaling_nan(f64, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float64_maybe_silence_nan(f64, fpst); + nan = float64_silence_nan(f64, fpst); } if (fpst->default_nan_mode) { nan = float64_default_nan(fpst); @@ -11874,7 +11874,7 @@ float16 HELPER(rsqrte_f16)(float16 input, void *fpstp) float16 nan = f16; if (float16_is_signaling_nan(f16, s)) { float_raise(float_flag_invalid, s); - nan = float16_maybe_silence_nan(f16, s); + nan = float16_silence_nan(f16, s); } if (s->default_nan_mode) { nan = float16_default_nan(s); @@ -11918,7 +11918,7 @@ float32 HELPER(rsqrte_f32)(float32 input, void *fpstp) float32 nan = f32; if (float32_is_signaling_nan(f32, s)) { float_raise(float_flag_invalid, s); - nan = float32_maybe_silence_nan(f32, s); + nan = float32_silence_nan(f32, s); } if (s->default_nan_mode) { nan = float32_default_nan(s); @@ -11961,7 +11961,7 @@ float64 HELPER(rsqrte_f64)(float64 input, void *fpstp) float64 nan = f64; if (float64_is_signaling_nan(f64, s)) { float_raise(float_flag_invalid, s); - nan = float64_maybe_silence_nan(f64, s); + nan = float64_silence_nan(f64, s); } if (s->default_nan_mode) { nan = float64_default_nan(s);