From patchwork Sat May 12 00:43:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 912312 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HSC7yHZs"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40jT4N4W3Xz9s16 for ; Sat, 12 May 2018 10:54:12 +1000 (AEST) Received: from localhost ([::1]:59359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIna-00039S-97 for incoming@patchwork.ozlabs.org; Fri, 11 May 2018 20:54:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdU-0004ww-FD for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHIdT-0002zP-Cn for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:44 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:39876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdT-0002zC-6f for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:43 -0400 Received: by mail-pf0-x243.google.com with SMTP id a22-v6so3433253pfn.6 for ; Fri, 11 May 2018 17:43:43 -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=Sl9puNuuuPbRgCmqDxPltmj/Vyt5J5Mk/0va5RwJCSQ=; b=HSC7yHZsKAf1yMpuN2Yd9rYyR+K7Px/utRbQFB0dNn+i1kKGBepTw7XgehjJ44IlCu h6UNrm1XjZc/Oag5Y7oEqAm42wE2fEpfbfJF90DEb0dPnPeeydJEhB5Mk31PjWFzpDId veUH5A44gdiHR7XElI538Mqqz3flLWLLqfq0M= 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=Sl9puNuuuPbRgCmqDxPltmj/Vyt5J5Mk/0va5RwJCSQ=; b=MzRbt/UpWjPBriKWWPdu39o+xixdF7QMccIlFvuMwrUVdJhGujuQAcDT6KTzfbN3Ex vPkMJJAbl2018RTaclOS3bEi+DsfeRYtWnQnfJ3RJbEwWksSor1TNdU6o9TypGtXpZZE M/1MeQTHYPalukuVC13Qm5+sXapZWbHi3q3v9+lvweK++vcdzYkXuco6pkPkyckhvdXY SELK1zz8yLZrwbswcn3ZMgWWVt8us58ibBEUiiyn2K0vtglL860Hwe04YJr4xKaVr9BQ mO6vEEM7iDFJ8GcuTY7mUNmhpim18BgMSZK74AkAEBQ10zjuQ31VDkXwwLetPxAb+PRM fi9A== X-Gm-Message-State: ALKqPwf7K2+h2qyQeHvrsvJFzubNQYNeQzF7Kj08dgxNRhMBnuELLqGS 8Q0dhGSJgg1TQp7dkJirtM7mECC6r58= X-Google-Smtp-Source: AB8JxZp6F3zxfJMrGeyTsF7Zq0ZZ31muRwEt7Rh+hTZFB2LzqEyPp5IYsEuiDHbZ+Nyy+aF3N93rog== X-Received: by 2002:a63:7a44:: with SMTP id j4-v6mr1020729pgn.172.1526085821949; 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.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:43:04 -0700 Message-Id: <20180512004311.9299-21-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::243 Subject: [Qemu-devel] [PATCH v2 20/27] 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, Sagar Karandikar , Bastian Koppelmann , Palmer Dabbelt , Michael Clark , alex.bennee@linaro.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This is now handled properly by the generic softfloat code. Cc: Michael Clark Cc: Palmer Dabbelt Cc: Sagar Karandikar Cc: Bastian Koppelmann Signed-off-by: Richard Henderson Reviewed-by: Michael Clark --- 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 frs1, uint64_t frs2) uint64_t helper_fcvt_s_d(CPURISCVState *env, uint64_t rs1) { - rs1 = float64_to_float32(rs1, &env->fp_status); - return float32_maybe_silence_nan(rs1, &env->fp_status); + return float64_to_float32(rs1, &env->fp_status); } uint64_t helper_fcvt_d_s(CPURISCVState *env, uint64_t rs1) { - rs1 = float32_to_float64(rs1, &env->fp_status); - return float64_maybe_silence_nan(rs1, &env->fp_status); + return float32_to_float64(rs1, &env->fp_status); } uint64_t helper_fsqrt_d(CPURISCVState *env, uint64_t frs1)