From patchwork Tue May 15 22:25:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135958 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp92636lji; Tue, 15 May 2018 15:47:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpPPOgt0F7qCDoZVM5DhG/5VEcx2cwrAnp0rfz0sHed1dBKD/KbUsW+TGtKM7ft4+7gYCKX X-Received: by 2002:ac8:24d3:: with SMTP id t19-v6mr16392358qtt.345.1526424445144; Tue, 15 May 2018 15:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526424445; cv=none; d=google.com; s=arc-20160816; b=VDl2wpOFawfuGpVaHpuE/Jw7nSQ+FCOaDyvQsWCACwUfz9IrY/6Nls2gzVpLPMUO6P fw1AzWRAgO+Oc5/rn9xAOh15I4E3lrAOGaCCoVFOCQjqeBOZ7tJvFHh65KEKbvImAtVM p6EjcUt/sJo6J6owv8FFlml+WyGKtIVAXR18abGzMwD9h9Vh912EwysbNI+5awzIOCO/ LdFwjhc6e8l69z97QE1895oTeFPEvH9Id5hFov3eukpJa8GMwFnZZFeDCV5gSYWgr5p8 jAgdCE2OJ2XXE7KKrYEm1wGifwq0hqx49uFp5v5/rnnWGBlj1YsXlyzu+lolXFd1Ez5P uxVg== 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=Pddu5CxoIkfB2l4SeU4Yck132O3NoYdwCneEPADu4ewxpFbhDVpDPljZGOLPoReuSw xRefDJJKse6AMAXOPAvK1wJzTjSZ4oRAOU2e58z+3Bcyi8kaPXiX1R4xzdoBuKJ1qOBH kZsvaQq4517qYaC9ZKsQFCEN32OdcemFylbJJbI6JBF1/seoJKihJ//VBuLcj0LnYEJk pCxep3QnqjXyv+osy0bGy52VVHobakE1AoAqVfAoEyUAnsEXQovpJoYtUmYl0jWg/pQH XLHCEJnjFhWVO8HTkYyrBIMLnllEsZTsCYw4hFZegjOxFC3Wl6BYChI/jGQAkQoaNzPE utcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QP+L9prz; 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 p57-v6si716944qtc.66.2018.05.15.15.47.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 May 2018 15:47:25 -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=QP+L9prz; 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]:36884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIij6-000320-Lh for patch@linaro.org; Tue, 15 May 2018 18:47:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiOT-0003VP-Ug for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIiOR-0005ia-Vr for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:05 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:32906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIiOR-0005bE-NA for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:03 -0400 Received: by mail-pf0-x234.google.com with SMTP id a20-v6so745363pfo.0 for ; Tue, 15 May 2018 15:26:03 -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=QP+L9prztRd2v4+sJV69G/QRe1teCX/lPYEYqLtKmycvQwtjj/Y1F1JbU6zdmG7iH2 GMazBj29iul9C1eVHkTC45dtUJrOg7joRuD5viV6Og0+s1yQUfLPh4mxbLKgS5laCryO 7/iTb0cqJBg0hPfFT94HAMLoFhB6yeXNZkx0I= 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=J1HwOk4PTX4zya+5Nh88w69kvt3E8tu5zJIf4A8ROtHLWKtHWPreM5N+hjTEb2UepI NYz0fDkWQPbHNQFB6Hqzss5g6ZseJ6aOZGuHhHL7AbdAKeFvPCcM2iDC7K629AIkHsGE 8W8qRv7i1PNY27m4b90WatnO/ShJXBJPSQOoJ0EvDFm86PVUP9bopqEi6sm1TSB3Kstw Lpg910tpG5dpvYT6I2RzLvIHyLvhgCRjalVUo162yXMZ349A/30J4QLh+Xi2GgOFbWqb 2upsMXEqk4mqQNIyyAsYcwwfMgrdCA6tggI2xPnhGQ4ttzTfZQ3xpkBV9OtEvBts71TP m4fg== X-Gm-Message-State: ALKqPweZAB+/p8sV/bIGENCygJ+Ng2ZYJnBV5R4A9NfhsGpmAHYXyvJl /bPj03O1HTammNNKlFH85jazWZAl1uE= X-Received: by 2002:a63:7315:: with SMTP id o21-v6mr13605077pgc.360.1526423162363; Tue, 15 May 2018 15:26:02 -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 g11-v6sm941419pgq.62.2018.05.15.15.26.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 15:26:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 May 2018 15:25:25 -0700 Message-Id: <20180515222540.9988-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180515222540.9988-1-richard.henderson@linaro.org> References: <20180515222540.9988-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:c00::234 Subject: [Qemu-devel] [PATCH v6 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, alex.bennee@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);