From patchwork Wed May 16 15:52:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136031 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1124886lji; Wed, 16 May 2018 09:13:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrYXBqSJ1GwJATBrvcxqmBbnxDGADSf8MFHg/FeDJ5oo0AzFuuIxik7B+YuQnIEp14hUgBv X-Received: by 2002:a0c:96f7:: with SMTP id b52-v6mr1553525qvd.170.1526487216380; Wed, 16 May 2018 09:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526487216; cv=none; d=google.com; s=arc-20160816; b=kHkWKeWd477exBICXiBJd5dmPubjPeeSC2tZaXay7sRGrUp+/H9U+UaTDgrbyJGJrD CtE2zmPYeKUY2oeVv1aMDKcA2k3lgKwt6ZcPC2wHUFEu+IV4RS/WzeZckdvpj4P14wnb UXp0cIcpSGL6cxBx4XpYWgW8Hw1MTc8Cksz6BibhGBw4Scc9Hs1lHnh/L/z6M3pVJdXD zGsi21wlu0T3/0pIJAaJpAWfgJ7vJEg/6lDrMwkbjfP8uJybXwxrHv94WeUPlqicS527 U60Gce0ddgbYLqjFJg+RK+LLb9vds7CRwrrDQp+53aoDyMa7z0NPeoluOllCVHRgNLtX eLWQ== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=HCzhOWHu2+7g6xUjsUPmKAtx3rgdm8J3LWpkOAk/KmQ=; b=JRTLd/MEXG/YlXUScfN2P8/K5swWou2zspzs8fgrL+SfNbZhYCnAkEGgHWQPg9+Z+L yMrnkz47K12YPlcbGhkHdzd0kbSnfvoVe+uJOs6TUJ+C/u6QpxiMWAnP66dqnXT4YwrP fwG0YsFwgjTTOrKH0clOZHEPvu4FWNVCjma66PK8lDdOmSL+bQ7r4PYTkc7N9hZ5WC3O 5yP+qVoB87c5B+BK7XQhqy8EmQPrVGc+5aSkIF45wQpJ1QOspM6Fz+XaYEmduSjTMQiL tm/tXV+hw2J1M+n01xPPK1yZmCbEgdjlbfuFPTIqS9cE9yEAifCGNfh3XfxQWVV1DpSY kSNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NkVg6V9k; 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 e91-v6si927307qva.247.2018.05.16.09.13.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 May 2018 09:13:36 -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=NkVg6V9k; 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]:53335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIz3X-0003Hh-KL for patch@linaro.org; Wed, 16 May 2018 12:13:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyjl-0004Tt-E9 for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIyji-00054k-7d for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:09 -0400 Received: from mail-pl0-x229.google.com ([2607:f8b0:400e:c01::229]:37295) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIyji-00054U-1c for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:06 -0400 Received: by mail-pl0-x229.google.com with SMTP id w19-v6so672076plq.4 for ; Wed, 16 May 2018 08:53:05 -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 :mime-version:content-transfer-encoding; bh=HCzhOWHu2+7g6xUjsUPmKAtx3rgdm8J3LWpkOAk/KmQ=; b=NkVg6V9kJXUH3/S4HEj1rAxuzDY2tnpE+ZNrsb2r3TNe2a/wJ4LAmLuOG0X/PRDnhy 0AEzsEfe1vFm4rvDOvUopZwTl3V/xzHxmMuY+dy6ATTvG8SSDL+Uymtma8zkY04i8vlj n/lo5bcYt7qKg9DUz2zbmssl/Os91fr+FuLDM= 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:mime-version:content-transfer-encoding; bh=HCzhOWHu2+7g6xUjsUPmKAtx3rgdm8J3LWpkOAk/KmQ=; b=PfRgPb9DxifTKS/fHVq6a03g6xTZ5q+IO7ml8FNY9dvoKeh+Wn5pHiPC/4XY/9t8ie 9raUUh1Q/CY5c841ZB+bKMt5lJZgLiX7OrjkPYHj2hzM/e0/flpYG59i/0lHQnVd6pd/ 2GCGKiE8/jOp/Z9qT3cN3rYue6TN5jll6YiItJ1x+4KqjD0xS+2DoWbEAf4KakaFox+1 eZ/xwkrnprvuluX6u62q4+SEaMxxggWZWPxUArgDT+bq/mqL8kyiF0eGuybv08Y4jlMA 8z7Oz82nhYRX7ejliAj3YWTBXUCMiNlvAAC85fgv9Q1wDrijG2kHy3XwhLQx4bHQChPW 6f0w== X-Gm-Message-State: ALKqPwe+ybZmhpB8bNoLPbNJToz34usDIj/WdXNoq5w1Z7VzRe6y0LdT sniO5TYoCZtPl6ps/FmMZVmHYDjNo5w= X-Received: by 2002:a17:902:321:: with SMTP id 30-v6mr1482304pld.122.1526485984676; Wed, 16 May 2018 08:53:04 -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 c3-v6sm4966632pfn.62.2018.05.16.08.53.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 08:53:03 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 08:52:28 -0700 Message-Id: <20180516155243.16937-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516155243.16937-1-richard.henderson@linaro.org> References: <20180516155243.16937-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::229 Subject: [Qemu-devel] [PULL 13/28] 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Tested-by: Alex Bennée Reviewed-by: Alex Bennée Reviewed-by: Peter Maydell 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 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 238a3ceba8..e05c7230d4 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11731,7 +11731,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); @@ -11779,7 +11779,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); @@ -11827,7 +11827,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); @@ -11926,7 +11926,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); @@ -11970,7 +11970,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); @@ -12013,7 +12013,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);