From nobody Thu Oct 30 15:17:02 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526086328980648.0301496376734; Fri, 11 May 2018 17:52:08 -0700 (PDT) Received: from localhost ([::1]:59302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIlc-0007Sh-52 for importer@patchew.org; Fri, 11 May 2018 20:52:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdT-0004uf-Eb for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHIdS-0002z1-3B for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:43 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:46622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdR-0002yt-Tr for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:42 -0400 Received: by mail-pf0-x241.google.com with SMTP id p12-v6so3425557pff.13 for ; Fri, 11 May 2018 17:43:41 -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.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:39 -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=X3MPVopCO6r3GXP6nGcOxs8hbJSx/GasHRZVyqy16BQF32HRvhFcqt1gWcbT2BXZAV qHYOwlOuSZlvhxykxSO3MuMAhvXS2bvwxLIteyn/iRz83w+m4dfPLhYz/rP4Uh22kwvD zNWskG7GuLo1uRmikbhCidqU4xM0xe42JpJxo= 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=YflwkPm8YlgJsUACrxE1r0cUsJRX7p+zZ+CbiDh+Lj8a+o2ehPFBMl/fyW6JxNWpMb NJdD7GpTlh8nBT6VMMzrNO/lWTt3phe6Xv4IG09gXw/5Qb1aZ7KD2IumM2wdLvpP8Lm5 iLTyIn7QFgZtU3IATl+3mt7qCP54L9tAwkSs7ORaJaN/LbWkyxQsDs65KQwhNIxThCaL 4wrtGZNEV3ievdce4iCOnH588WQNUrbKoEXp8BT37YP80p5zxRqge99wlq34AVrHgfoS GtKaWElknHXsK207dD7f8p8Lglll/WiilmMm43AaPb5SG5lPZ/clzqLLDhbiMSJp1C3j QGCA== X-Gm-Message-State: ALKqPweX1FChTlTEr/7fvmJl4ChI3F9zjvdNeZEf3g/evViZj238EN5N xapAMEYMFeyV+x9Ce1O+3ZECmUu1nlM= X-Google-Smtp-Source: AB8JxZoPaVqixEKMI4aFKbQ07umGe6JsH55yO8IDBLY2E3L2wA6VpFEu0TZB4u+Ofm8rqFYeGV9pWA== X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr991108pgt.429.1526085820557; Fri, 11 May 2018 17:43:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:43:03 -0700 Message-Id: <20180512004311.9299-20-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:c00::241 Subject: [Qemu-devel] [PATCH v2 19/27] 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This is now handled properly by the generic softfloat code. Cc: Aurelien Jarno Cc: Yongbok Kim Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/mips/msa_helper.c | 4 ---- target/mips/op_helper.c | 2 -- 2 files changed, 6 deletions(-) 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; =20 f_val =3D float32_to_float16((float32)a, ieee, status); - f_val =3D float16_maybe_silence_nan(f_val, status); =20 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; =20 f_val =3D float64_to_float32((float64)a, status); - f_val =3D float32_maybe_silence_nan(f_val, status); =20 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; =20 f_val =3D float16_to_float32((float16)a, ieee, status); - f_val =3D float32_maybe_silence_nan(f_val, status); =20 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; =20 f_val =3D float32_to_float64((float64)a, status); - f_val =3D float64_maybe_silence_nan(f_val, status); =20 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, uint3= 2_t fst0) uint64_t fdt2; =20 fdt2 =3D float32_to_float64(fst0, &env->active_fpu.fp_status); - fdt2 =3D 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, uint6= 4_t fdt0) uint32_t fst2; =20 fst2 =3D float64_to_float32(fdt0, &env->active_fpu.fp_status); - fst2 =3D float32_maybe_silence_nan(fst2, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fst2; } --=20 2.17.0