From patchwork Sat May 12 00:42:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135592 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1568824lji; Fri, 11 May 2018 17:50:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrwbk9A5ISxgo4act86x8+ST39uxsw3vSssoDp68pfwFvebQy+J2ceejThHT9PA2fycI4fP X-Received: by 2002:ac8:316e:: with SMTP id h43-v6mr247357qtb.299.1526086224436; Fri, 11 May 2018 17:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086224; cv=none; d=google.com; s=arc-20160816; b=ftp5KDTuxKfPZRFYpuHPrdb5vEZlUG0KOUDf0Gd9jEpcq5DsFOi6WA5fjEWCdrWX8q uvSH6++IuTX7KBotYPxzaFTOu4T/nTjcPW89qUHPMZf/tkhYWZjQ08kkBGUnzdOWF5lU SghwGpzW7oNkIs7OS0KALfwOwKweTIHzyoSD8M5qg2s2+k1Pk5jLxvdKcfK/B9Tg/p9p Emqxbm/vnTPhfq+28+TJpCenoxRBLWkC5FhCrzv3PhUWe4pxBSTCXeCCcBVkyjFQtrNG fYyZj0LKZB5AjfMU17zoCWz2Yl158FabTNl5AkW7cBqdaR/4TDNYw7kZ2H8OKrVdc9Be 5ouA== 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=wHdlJfexyPx1KMaIXVXWmvRZE1xD2xfRVvH9LtyDBZQ=; b=MCjfeCefnB1n00/OS84FUVDeB5Vk1OSu6Dyh7IIMhHB7SlKigGjCW8s+9hl26feAyG a1HgMN+l6OQ5t6HrRZaEVuolzUF0CFdOWqg+Nfsj/Xv0M9/+l2j69gD+5Hd5wrO1f6eY KRUJjjoJrX8HsP3QRO/3Xa7cqcu4ewbNGd6zbVGI0cbfF6cnT0JRmanM+FsE0chDcAHW XiboM6egXpdl3JZBVXc8vS8okdtjL/9UvME8c+Fo3GMGvDcOfNkgO9PXvg8V86BPOJoC JNQdR0KmbHvq/hjKZQ/So4271Qre1auPu3WqbXSUrRET23/3qICC9rNbnYHRWP7NgT39 dFtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cj6tnqhh; 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 i23-v6si4386365qke.178.2018.05.11.17.50.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:50:24 -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=cj6tnqhh; 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]:59281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIjv-00061y-TD for patch@linaro.org; Fri, 11 May 2018 20:50:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdK-0004Xe-Rj for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHIdI-0002v2-Va for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:34 -0400 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:39088) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdI-0002uu-PU for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:32 -0400 Received: by mail-pg0-x243.google.com with SMTP id e1-v6so3080700pga.6 for ; Fri, 11 May 2018 17:43:32 -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=wHdlJfexyPx1KMaIXVXWmvRZE1xD2xfRVvH9LtyDBZQ=; b=cj6tnqhhif2AjRXFIPCPA5ovJrVnzHuFFVOY7TqIN3pOPO5m8onzeG6qvh0ZFyzo5c jFbRERnw4qMBtnmrjyv+sHlSDpssoLPptBKR6yhCa1azqejcW+8KQLDKBGMsi4RI5mqy h+2xvonrLO+mZ1Y9mRZAb79X3dgl4iG6QNwZk= 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=wHdlJfexyPx1KMaIXVXWmvRZE1xD2xfRVvH9LtyDBZQ=; b=aCXx6bzFgQvc1hFhuXizITgQwyPwca1Xq8qNbKQreZEWa5dj6iMkNBjZk1g+YMmX5O FUWglmn5C75I+fZ/wRXs69kghvQuJiGejmvXDueEWYOCbGM73reSUnVXqshI1YT1i+68 tkXWkq7frtw4M/irxCXOc6txOEVtzmNyAaj6aoFjqfmAOZP3X9SY9LlkrwjXI0MEuiMq 7mAI7G4cNdK+7JyFv0sYzijNWlUH+ZPS+oqtV0anrKXnRMVNat5iFDBl76z4JbdB9Bvi HxE5CnHe+Tpl9w6HfNPjwlaYFlCVOHLKl4w+/kf+72ukkYvBgpSIAigiFxwCJdYEEnmJ XGcQ== X-Gm-Message-State: ALKqPwfrjFDEl37CF+Zv6cic5hrh7/WPjF9jKST3z3HPtNCz7V4P7rBB C+AuDTSYy/MljLsf96GaMAzVS2nj5bE= X-Received: by 2002:a62:fd12:: with SMTP id p18-v6mr984938pfh.152.1526085811536; Fri, 11 May 2018 17:43:31 -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 k84-v6sm10756406pfh.93.2018.05.11.17.43.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:42:56 -0700 Message-Id: <20180512004311.9299-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512004311.9299-1-richard.henderson@linaro.org> References: <20180512004311.9299-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:c05::243 Subject: [Qemu-devel] [PATCH v2 12/27] 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 Reviewed-by: Peter Maydell diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index 4f8034c513..6f0eb83661 100644 --- a/target/arm/helper-a64.c +++ b/target/arm/helper-a64.c @@ -376,7 +376,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); @@ -405,7 +405,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); @@ -434,7 +434,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 c6fd7f9479..3df5cf30e4 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11739,7 +11739,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); @@ -11787,7 +11787,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); @@ -11835,7 +11835,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); @@ -11934,7 +11934,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); @@ -11978,7 +11978,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); @@ -12021,7 +12021,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);