From nobody Wed Feb 11 00:59:30 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 1526423712308986.5958059520593; Tue, 15 May 2018 15:35:12 -0700 (PDT) Received: from localhost ([::1]:36351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiXH-0001BC-Hq for importer@patchew.org; Tue, 15 May 2018 18:35:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiOa-0003bQ-1S for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIiOY-0006oY-MO for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:12 -0400 Received: from mail-pl0-x22d.google.com ([2607:f8b0:400e:c01::22d]:45193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIiOY-0006hj-F6 for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:10 -0400 Received: by mail-pl0-x22d.google.com with SMTP id bi12-v6so854122plb.12 for ; Tue, 15 May 2018 15:26:10 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 15:26:08 -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=ZKA1cgEe/1kC1iXJY+08BCUNPqLiu9+Vc0pFv+xR4u5pZcJ6T6MOEhKx2HNm9mXJqM LBl9RrgSDfyu/HUNnWcdUxpsJzZwajfhlAZJEjDabjoSFvJGeb00jHUwOym7LbH0bITJ tkSOofNijTRWrRme1AfWx3t6W2wbUbolbz5Ss= 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=LLQbfFthk0+WSoi6q0/k1qVckvYN90aGt9UYwCcbZWc0bQdbDdTRISVEL5Dpxo2IkN 4VDwrLQOZXiQA3aZIHl5hHuJUs+Neyx3a5D/CSW6VdhCztx+fWhpGRRiD92prul01eJN J94u0bvCZqyeZ8DlITTasXI2f1zzGjqpzMuJueFTZqwJosppQnOlf8+w325VqsLZdtyh U1PRCvHLVxb6dHrJ2wRdd9VmsTZOCj9tiGXQoTlnXT7mHZM7/l2bwVI67HLK2Bfuxwjo C8fuZzxftgZNeiTJBzf/s+6zp/z4qgCH4qpeOqk2eIhGRbc8LfWX1bzrAhMYHFwULwrs TgaA== X-Gm-Message-State: ALKqPwckbjQnqbnH+I24lOmiARYsmV+Bjp6seB/MAhGxLqbPb2WQsCIX BqGzhZP8cIBheeoPRAkNisfPalld6cY= X-Google-Smtp-Source: AB8JxZotAm2NvUdL7C1+dPQ4hsN9Dla0FvF8uV2dSc3KB8U5H6WCD83nspDaVzqmT8jQIULgVRkSeg== X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr16319356plp.75.1526423169236; Tue, 15 May 2018 15:26:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 May 2018 15:25:30 -0700 Message-Id: <20180515222540.9988-19-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> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22d Subject: [Qemu-devel] [PATCH v6 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