From nobody Sat Nov 1 08:18:04 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526336647862212.53645911173192; Mon, 14 May 2018 15:24:07 -0700 (PDT) Received: from localhost ([::1]:49942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILsr-0000UC-N2 for importer@patchew.org; Mon, 14 May 2018 18:23:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILi5-00088c-BR for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fILi4-00087W-3c for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:49 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:45659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fILi3-000861-TF for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:48 -0400 Received: by mail-pf0-x244.google.com with SMTP id c10-v6so6658570pfi.12 for ; Mon, 14 May 2018 15:12:47 -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 y2-v6sm14512457pgp.92.2018.05.14.15.12.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 15:12:45 -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=lFbjHgIjVdntVwEG8TX8Zn/QYQH/a160DBSlPiGyBN4=; b=O7YckEzOS93CP+o7AXg6CyjlcHA9jJ2BSUh3uz5RjL5LZxTWHhekG5PF0Zmupi4yHg yHH9oa0dHDuPew4iUP+MWbvu3QWFva1OBjHGFnB4Hlkv1CwNH6bdmsuelJbY4ShiFvDd L9GrWtcPRr86OWHEVLVsV5dfiwmPe1BoZuB0Y= 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=lFbjHgIjVdntVwEG8TX8Zn/QYQH/a160DBSlPiGyBN4=; b=CwMOji/qc1zx8TyZvjzSqv52Oy+KxT84XqtB9RCCraF3vLFBN8Y1n1UcZK7ZDDhaJE WenTSjMMetmoVldGyf/oFuJgNekzRyVdkgHSY64Tbsc97EouDdC8TXKOQ5jjgGp86Bjg T2KC+by1WsEyUcGQli4u1CwDUnsVbbt9CYcqP2J2RvJJPSw9zxVUgFasI/u2xqXJAz2P KNd9cKQvNviEdp87v8EKy48KeIWe3XG4Jh/S6Nlq1XEJRiriWRVWevh7mO2PCWx+/Zu5 zEsb6XG0oh1edEU2w8a0exBIZI/yJnJIXKPmQ1RU8EBZaDliTMBuvsK1mzYGX+ki5dde zPAg== X-Gm-Message-State: ALKqPwf61TS+kFZEJgOz2ZWMoDzYJ1WMUyJa/ZGW7h5sQHX6v5RsorDy amZCj4ZTP/ohaCy/7LnQbUyHAgkomvY= X-Google-Smtp-Source: AB8JxZoXaFnkDGlh7SrwxFOe1FFBMSp7mBn4m/zFf8T3Sz8bS68lhbY51K/qjkIL2chMxjrkGVsQag== X-Received: by 2002:a65:5008:: with SMTP id f8-v6mr6019205pgo.349.1526335966786; Mon, 14 May 2018 15:12:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 May 2018 15:12:09 -0700 Message-Id: <20180514221219.7091-19-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514221219.7091-1-richard.henderson@linaro.org> References: <20180514221219.7091-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::244 Subject: [Qemu-devel] [PATCH v5 18/28] target/riscv: 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, Palmer Dabbelt , alex.bennee@linaro.org, Sagar Karandikar , Bastian Koppelmann 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: Palmer Dabbelt Cc: Sagar Karandikar Cc: Bastian Koppelmann Reviewed-by: Michael Clark Signed-off-by: Richard Henderson --- target/riscv/fpu_helper.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/riscv/fpu_helper.c b/target/riscv/fpu_helper.c index abbadead5c..fdb87d8d82 100644 --- a/target/riscv/fpu_helper.c +++ b/target/riscv/fpu_helper.c @@ -279,14 +279,12 @@ uint64_t helper_fmax_d(CPURISCVState *env, uint64_t f= rs1, uint64_t frs2) =20 uint64_t helper_fcvt_s_d(CPURISCVState *env, uint64_t rs1) { - rs1 =3D float64_to_float32(rs1, &env->fp_status); - return float32_maybe_silence_nan(rs1, &env->fp_status); + return float64_to_float32(rs1, &env->fp_status); } =20 uint64_t helper_fcvt_d_s(CPURISCVState *env, uint64_t rs1) { - rs1 =3D float32_to_float64(rs1, &env->fp_status); - return float64_maybe_silence_nan(rs1, &env->fp_status); + return float32_to_float64(rs1, &env->fp_status); } =20 uint64_t helper_fsqrt_d(CPURISCVState *env, uint64_t frs1) --=20 2.17.0