From patchwork Fri May 11 00:43:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135459 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp251799lji; Thu, 10 May 2018 17:56:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoy5cZCDfCNEpovci32uLdrL4Nc3bW2BkPs4ofWKqSH7mwPbwAUNykVTDFpAq794TM8aTkb X-Received: by 2002:a0c:ba97:: with SMTP id x23-v6mr3354369qvf.112.1526000184006; Thu, 10 May 2018 17:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526000183; cv=none; d=google.com; s=arc-20160816; b=G3Xz6WqWlSGK6k6Oe/Z8mz4UnokSXk8vjM7Q9e67MJs/PtS9MDMGX8RDRykD6hZ+Tm bmlg9GS1kEa2vkMs5ZTVmIH5Eg7pIv0pseBlPGqQ28ak76TYZAyU8flGWaJ2/GpTR1EF F0O/yu0qrrq/JrF4UraeWhEEUhSkcCb56452MCCqsCntTnANCNrrFHckCaWf+DhSoWve DGUz+/MAuwUFPUkmqx2Yehjxf1oevuvRc+mVVpyXTZpbMZE0FVGyK8R+ovLdtskUch/Z JC8M2bYKMOX+2CO8LBISE2+AX18sqlG/SDTO/4+mmLF8UVHpoRND9JVnslsBM5eI11cS YP2g== 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=1BvGq635rJsZ0KlQ8FOeyp3MxqcjWX6W1Zvz0etrkM2al/O2odfpY35hwZ2YM25IbE 0sGmEtRmZTLmknR92/t5HWhRD4o4eYwS5Et0zm9xr20Z+O7ojad2xHclurN0xKfSt3fI uyh3759NMy9IOGDm81p1dRpVzGj0leMKmAYo9OTC2g2kpuiBlpd0ncTKeDK19I+W7JlU AD4zIjzObrmdkeKsj/p0jHwqTuTczQo7FiaDCB64nzBw3ZtnW7rczxt142pQfNKH0XQ3 qwezjgr8jZh4bxGWRY5PkkCKVRYLuBUsd70EyNRLhQ9bpi7LPn5eqU4zvGTxfPLPzTXQ gQ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cgwbjKgI; 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 g101-v6si2028443qkh.343.2018.05.10.17.56.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17:56:23 -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=cgwbjKgI; 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]:36221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwMB-00044t-3u for patch@linaro.org; Thu, 10 May 2018 20:56:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwAK-0007J9-91 for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGwAJ-0004sq-Da for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:08 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:37636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGwAJ-0004sf-7o for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:07 -0400 Received: by mail-pg0-x244.google.com with SMTP id a13-v6so1681391pgu.4 for ; Thu, 10 May 2018 17:44:07 -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=cgwbjKgIdktN0HMB6hDc8UTo0nl1Nflj0tKxoz190L6gWU6b6hi1JJnvc7pLhLmjPl y4MkqEqCJ/GyaS976N2ksKDQEXDLVrLIZt/V0ZQLjP8lD4szhmeGYRu6+GOILQrNHGSR MoYTotHdhKGrVz3b1mG621l5SX4Bzt4eU5BnM= 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=szBfO08wHBWG0wlL971cDaF9OdCqAuohRykiuvFmxKkN8FFdE1u4kHQ7GYMLp+ceOG iIfPik2arYPz2+L+4nnFv8Pd2zW7foE4cZSx+AH2QMkc537H8GirITMqX3GkmYGT37WM AScdG4yJfX5wsKoyNw9rCAxLzi9T06KhbOaGS6cn4hbtjq5Q5GkbwO9xT/PPlxUYkS2O QX+cQVeS7w6M4zyNdJDMhWdxTtKVCFMQzVd7j0URCXFQgZPrkBOXpNY1p7flgi/5GURq ii1eGNxkB1jqdFHIL0Q5nplGvW4Jft/rsjRAgPsLm97WYy+n9cJqUVMNLXzn253q5q/f pJ8A== X-Gm-Message-State: ALKqPwex9NStsXW6WTZInS8Jy1mkHLgRYA4jd8jfeyoCp8h4KrWISHk5 7crYw3I66qaRN/VlP4nCqTGqzQB8kTs= X-Received: by 2002:a62:c95c:: with SMTP id k89-v6mr3303589pfg.47.1525999445997; Thu, 10 May 2018 17:44:05 -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 y24-v6sm4216728pfn.23.2018.05.10.17.44.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:44:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:39 -0700 Message-Id: <20180511004345.26708-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511004345.26708-1-richard.henderson@linaro.org> References: <20180511004345.26708-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:c05::244 Subject: [Qemu-devel] [PATCH 13/19] 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 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)