From patchwork Fri May 11 00:43:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135446 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp245980lji; Thu, 10 May 2018 17:47:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZognkVaXskf1r2I4Gs8KX7z9pAJ4NxyDQ2+Ppak3Ti0GlOCTbXpYCmNUsm2CivaIvEqqGJ4 X-Received: by 2002:a37:80c4:: with SMTP id b187-v6mr3186926qkd.47.1525999645054; Thu, 10 May 2018 17:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525999645; cv=none; d=google.com; s=arc-20160816; b=ZnIWlqbykMwNAX/kViF3ucGabf7k3d/CC6NSaSSJiO46P6ModlpY8f7P7hC9ibcWVP QR2xanUGm3k2dzwNLACPi47sN4O3jvNoJCg56bZyDO7dsS1IfTlTWTR/UHjkIrGRI30W 4pXpevD05+f1KPy9yT3PUgy1S2Am6QGPDhbnSejb0C0yR4v28BbTxv6+WAUjMvOG5E7e NfqsnPzkRnquLZ2CW2G1hU7lynuqPulQTTjTR+XzHgo8kgDofCr0Nj3heLKJzHy5hNI1 KGOBxlW9b5rftUFu3NZbmaDBFG+vWnRsg+atFAUVS09plzSNbAY++JAK4z05SX7g46l+ p0qw== 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=+6dmYgNBq5ftwjyPS2WMF6O8R65wvbccZZc/fwe9HEo=; b=MN8en15ZVkddFeX5qWLyLFbOxOtddKyzymmt5vpqwQyyYMvaF3pOgFHe+IBaHPnNTq KYTKt2CGCFOXdqzqo3lC7Y3Y7nIbYt6pUn04JDgVqHPafRMru8lzG1l61RS+cJC4zyvP hbBUZl8gupESmLtIUKOhuxVwhzMRjBvC/9AfPK7aBqxow/F0vQ/m7omGopoWuXBT0JAP E0KsrRW/3CEGrvI8IjTEa2lzIgPugrYT6e+MEKpYU/0d3gHjtHK2ya0tHii3WOEZCF/j BpL+jtmQYMCbfGrJ9/CFLXH26F7kyP4lzBZnvfCRC+mSqvVzQNWWoLDCCi/JZbuxKb5R G7Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fzQkSLQG; 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 r7-v6si2046487qta.306.2018.05.10.17.47.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17: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=fzQkSLQG; 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]:36175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwDU-00039y-FZ for patch@linaro.org; Thu, 10 May 2018 20:47:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwAI-0007Hj-S1 for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGwAH-0004sS-Sd for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:06 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:43673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGwAH-0004sJ-Ni for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:05 -0400 Received: by mail-pg0-x244.google.com with SMTP id k11-v6so1672800pgo.10 for ; Thu, 10 May 2018 17:44: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; bh=+6dmYgNBq5ftwjyPS2WMF6O8R65wvbccZZc/fwe9HEo=; b=fzQkSLQG90Fw5gXCvFhSGkWwc2ZqkSUdG/MzLogQnHuzv7BZ6LXzF13oYEQr42lDAa dJxzxm14YP9KUlIfsVVBMx/6nrxklE9SAfZqBBaN4ZtXwL441fIYuyZ/oFEveRqLXJ4K Z5NH4tx2lZaJCIy9hnx25wBRptt6GaRhmAIGA= 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=+6dmYgNBq5ftwjyPS2WMF6O8R65wvbccZZc/fwe9HEo=; b=Nhna/XJkoBuQKMoxjMicyLVyit9/i52ReSYyXgKmWNDfkuBqNa6pHWt9MX3axKXW2l McUKTj3cuIDeol9gMQcINZ5R2cZun7CWFytvUvfgVZwkcd1AkC4uyAdHviB5be2Sl1Pp kH+c5TmRlRvr57d2dLvVHDx4mG9dg8IAjqzjfbRVnU/E5m6wUbcPz9UyF1+QsIQJ6Zz7 WTDRh2sFioQaISdYMvWCzBad3MgvcIkvI9VyhAYHIUucVr+Fcomti1wewdXnZTYOBBlO rLEjBzZIlcJYwKdtRaxpZdzwQ9RPcTAELv9Vj2yrc6Wucuk9co9+qorjWb8lC+GB4pXA ra4w== X-Gm-Message-State: ALKqPwcyMeF986qCPGKdEpQ1R+tpQm3Iqv3lyhamK8yHIPFwGq8Iizk5 vl0dqwVwv507HBx6IMT9HjYiR9B7L6c= X-Received: by 2002:a63:b94a:: with SMTP id v10-v6mr2729019pgo.372.1525999444262; Thu, 10 May 2018 17:44: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 y24-v6sm4216728pfn.23.2018.05.10.17.44.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:44:03 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:38 -0700 Message-Id: <20180511004345.26708-13-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:c05::244 Subject: [Qemu-devel] [PATCH 12/19] target/mips: Remove floatX_maybe_silence_nan from conversions 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, Yongbok Kim , alex.bennee@linaro.org, Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is now handled properly by the generic softfloat code. Cc: Aurelien Jarno Cc: Yongbok Kim Signed-off-by: Richard Henderson --- target/mips/msa_helper.c | 4 ---- target/mips/op_helper.c | 2 -- 2 files changed, 6 deletions(-) -- 2.17.0 diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c index 8fb7a369ca..c74e3cdc65 100644 --- a/target/mips/msa_helper.c +++ b/target/mips/msa_helper.c @@ -1615,7 +1615,6 @@ static inline float16 float16_from_float32(int32_t a, flag ieee, float16 f_val; f_val = float32_to_float16((float32)a, ieee, status); - f_val = float16_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1 << 15)) : f_val; } @@ -1625,7 +1624,6 @@ static inline float32 float32_from_float64(int64_t a, float_status *status) float32 f_val; f_val = float64_to_float32((float64)a, status); - f_val = float32_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1 << 31)) : f_val; } @@ -1636,7 +1634,6 @@ static inline float32 float32_from_float16(int16_t a, flag ieee, float32 f_val; f_val = float16_to_float32((float16)a, ieee, status); - f_val = float32_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1 << 31)) : f_val; } @@ -1646,7 +1643,6 @@ static inline float64 float64_from_float32(int32_t a, float_status *status) float64 f_val; f_val = float32_to_float64((float64)a, status); - f_val = float64_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1ULL << 63)) : f_val; } diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 798cdad030..9025f42366 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -2700,7 +2700,6 @@ uint64_t helper_float_cvtd_s(CPUMIPSState *env, uint32_t fst0) uint64_t fdt2; fdt2 = float32_to_float64(fst0, &env->active_fpu.fp_status); - fdt2 = float64_maybe_silence_nan(fdt2, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fdt2; } @@ -2790,7 +2789,6 @@ uint32_t helper_float_cvts_d(CPUMIPSState *env, uint64_t fdt0) uint32_t fst2; fst2 = float64_to_float32(fdt0, &env->active_fpu.fp_status); - fst2 = float32_maybe_silence_nan(fst2, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fst2; }