From nobody Wed Feb 11 05:13:34 2026 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 1526486990721111.04364980483501; Wed, 16 May 2018 09:09:50 -0700 (PDT) Received: from localhost ([::1]:53221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyzt-0000iW-U3 for importer@patchew.org; Wed, 16 May 2018 12:09:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyjl-0004Tu-E7 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 1fIyjj-000558-KC for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:09 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:40499) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIyjj-00054y-EW for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:07 -0400 Received: by mail-pl0-x242.google.com with SMTP id t12-v6so667440plo.7 for ; Wed, 16 May 2018 08:53:07 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); 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=cSZ33bwDEVkNnz6+2oRZOYUtCrbSKbPYkMTqNAn1iAA=; b=Dp1FFT4qSc3B7EMp27YGnq1ZkZeUIy92hBiIsTQ8bflVsS9UbdJWFb/KK1E7Es8HmB DaaseXVV9La+kGMtUuIr2y/u589M6FSFr0AZwGpFkInjlFRW5Nu0g1dzxyJHpBAaiaZv tkcvOK8kClfEuqjVfP+iBGxAY/pu58vI/t4mQ= 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=cSZ33bwDEVkNnz6+2oRZOYUtCrbSKbPYkMTqNAn1iAA=; b=dsFDmM+RU6c6guDsEVXnz+RwrXiwwvLdmSlote7WLiQ2E54Dlf/9sR7L3oU7uq57DZ QprliC2FR7L35/BS29N2USiUb19c6Z9p66+OZM/Z7gYrNy81tLauXB03eewX+1ry0FwK bgKMdfzNuXfHwvl1PT5drI0FaBB9XA5054ubr7yusGhgxkpJBsjuTNxkcLTNjhlKPpST KwlZu04/MxGx8eJI8Hoa7RJdfhbcK1f2ryQdN866yzlChoz7+vBykOYk6Zj4fU1jHAWB JC5DU2GFhNxhh11Tdl1ItkYshIvGx4QIxrZv9+7qTr2a8ZvKP8zKEYzjpK5/gkKigze2 lwhg== X-Gm-Message-State: ALKqPweA4blmXgc+wii/zjjknJO3FYBeoDeT4bmfvGojiy4831O9bUEj 3s5t1wYM8YjoqZGNsP3HeSde+00qoag= X-Google-Smtp-Source: AB8JxZrl9np5esjY1paNihWzb9Pc4bxgg7z4vapJYBCNqqOOzP3fnMdIlOdV6uOF+iJbTngfKbV0YA== X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr1498860pls.270.1526485986121; Wed, 16 May 2018 08:53:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 08:52:29 -0700 Message-Id: <20180516155243.16937-15-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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::242 Subject: [Qemu-devel] [PULL 14/28] target/arm: 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 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 This is now handled properly by the generic softfloat code. Tested-by: Alex Benn=C3=A9e Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 1 - target/arm/helper.c | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index 6f0eb83661..f92bdea732 100644 --- a/target/arm/helper-a64.c +++ b/target/arm/helper-a64.c @@ -466,7 +466,6 @@ float32 HELPER(fcvtx_f64_to_f32)(float64 a, CPUARMState= *env) set_float_rounding_mode(float_round_to_zero, &tstat); set_float_exception_flags(0, &tstat); r =3D float64_to_float32(a, &tstat); - r =3D float32_maybe_silence_nan(r, &tstat); exflags =3D get_float_exception_flags(&tstat); if (exflags & float_flag_inexact) { r =3D make_float32(float32_val(r) | 1); diff --git a/target/arm/helper.c b/target/arm/helper.c index e05c7230d4..db8bbe52a6 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11348,20 +11348,12 @@ FLOAT_CONVS(ui, d, 64, u) /* floating point conversion */ float64 VFP_HELPER(fcvtd, s)(float32 x, CPUARMState *env) { - float64 r =3D float32_to_float64(x, &env->vfp.fp_status); - /* ARM requires that S<->D conversion of any kind of NaN generates - * a quiet NaN by forcing the most significant frac bit to 1. - */ - return float64_maybe_silence_nan(r, &env->vfp.fp_status); + return float32_to_float64(x, &env->vfp.fp_status); } =20 float32 VFP_HELPER(fcvts, d)(float64 x, CPUARMState *env) { - float32 r =3D float64_to_float32(x, &env->vfp.fp_status); - /* ARM requires that S<->D conversion of any kind of NaN generates - * a quiet NaN by forcing the most significant frac bit to 1. - */ - return float32_maybe_silence_nan(r, &env->vfp.fp_status); + return float64_to_float32(x, &env->vfp.fp_status); } =20 /* VFP3 fixed point conversion. */ --=20 2.17.0