From patchwork Mon May 14 22:12:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135769 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp193507lji; Mon, 14 May 2018 15:22:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpoer85kiVHB4i2f+1cPoAlM6tIMzYupmABqCGzJRpzdecLUBfpTQV96qP/ks34y3VjVF1k X-Received: by 2002:aed:3224:: with SMTP id y33-v6mr11245971qtd.179.1526336532840; Mon, 14 May 2018 15:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526336532; cv=none; d=google.com; s=arc-20160816; b=zocMDC82RpFEcVjXVINo7Fi1rkaLmk4ZnQN9nn+ELPJZs+1kL76NEONd1aF9gZcQBl A6ciPSrpaesS0RMig6vaQwHHYryIeDcWL2OmFJTOCGepcc+QGuia62Id8uk8FdwNnh6F Xbhj29IjYj0cFiu67Ln8nM2GTnm0zFv9hg5UE1sISXNodkG+Qnu7V3s8+Jq4aZ6Y3LOc Z1Qk6XXujs3wSjO+7MNZEGELGixkCCpGVlQXDYYAUl2DgGozLGoNKJF1UqtEBVLCu9IS KP3uJfjjqngA4EnSyWYKd9P4MZevdB6vgI2mdRvWeAo8jfHnTl7lNkAoK6gTT74YbNlI 1pKA== 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=lFbjHgIjVdntVwEG8TX8Zn/QYQH/a160DBSlPiGyBN4=; b=Zmo434cetyDc1kFobn/ZADTTD9KiwAmFBiVz91HbhUpRVYOgxDJi18GZUD5rCNj2JL hAqvzPA/UbyoWloz8VL2H8uYA2LEpqoN02LAp+3Ea6cIIs52Bi0pr6IT+I0LgNxF1Ikk Fv7XUZBL2CoTeoRJUO1pLuLEn/f4ROi8trn0P/JZVZORg85q4WJVyzyO1zZusD8lzsyR rsSgunVSjsMvkHpABGvPl+m9pnQMgsYfG9CWG45fLpZRHiaD2OSfWrfjgKUdh2sXyvfv zS4+ZNRyi4fqZl9M1gHkNp7gpbLC9FLk7n2mhyGLrnjBr/IVb1q6Lvmq6SkHhz/stUvs Lv4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=O7YckEzO; 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 i67-v6si5604203qkc.51.2018.05.14.15.22.12 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 May 2018 15:22:12 -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=O7YckEzO; 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]:49934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILrA-0007RZ-6w for patch@linaro.org; Mon, 14 May 2018 18:22:12 -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) 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-Received: by 2002:a65:5008:: with SMTP id f8-v6mr6019205pgo.349.1526335966786; Mon, 14 May 2018 15:12:46 -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) 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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(-) -- 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)