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: 135599 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1572723lji; Fri, 11 May 2018 17:55:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqifSSv1Ne9Ju2K0k99LZc7Wy5zojf3Ny4Br9OS+hrTqWULZ69iH4SF5UJzLJ20CsCDjF9+ X-Received: by 2002:a37:2995:: with SMTP id p21-v6mr242300qkp.397.1526086551489; Fri, 11 May 2018 17:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086551; cv=none; d=google.com; s=arc-20160816; b=cLpwTsI594THaK8ZWlXRI4n+VDCp9VA+LGCsJqfzWk8e8QH3fzsclz7zl1tIWCE/SX AJe+vSEKKiYgbZX/k2bU7y4YSzaXaQXsHa8Mu7u1zh/KymW03Uvfz9VNCyoCRO8DetVS gKSNIxRWlB3rY8/D3xO6oLbgoFe5VqOGaeqWUn4MdXC7Xu38V8gPNs9nW/wK7TyUoGkw FUgzhn/maMOdY9DqULQEn1HaTBatHo6clMlOYlV3Fq+2eTcfGVdCv2JVpbzYE8g+KuKm k6Y5bT3c0/g73IHNZ4/nd+XaILhFLcmbnBiZxQ3NbYVEAhwLalzNPEc9qoVDAvuQ4s0r hP8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Sl9puNuuuPbRgCmqDxPltmj/Vyt5J5Mk/0va5RwJCSQ=; b=bMC3Z6J3BNqAHILxdwr1S/0o9xfRhMukwKRgIL+pgVkoO9FroRTkkowwVBRwNE9odQ C5UpR7cklud0jZ/0My0gjV3QImSKBHWsNxfj3fBLBUNSOOJa9i1QT5k982ypLd7Kyy7h eEYSOW1NngmEnapMEg1pS9BV9LjoHDbIEFzvSArsfPp5xBO0aLzq+vjG/d0XWXw6LyQa C9d84rv7WoWEMcRcCHHC7qQMcSMfRXqA3I9tF7bxIMh84jrhUJeLRYpTbKonCvYnJwU3 AJPljihdaJto8VJK0vomtZFWC5Z163oNHiOA+jIT0/lfXX8CJebDIJhqxYXx2tqpx/4P +CfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HSC7yHZs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f30-v6si4107143qtg.351.2018.05.11.17.55.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HSC7yHZs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIpC-0007fQ-VO for patch@linaro.org; Fri, 11 May 2018 20:55:51 -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-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+patch=linaro.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 --- target/riscv/fpu_helper.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.17.0 Reviewed-by: Michael Clark 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)