From patchwork Tue May 15 22:25:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135945 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp82396lji; Tue, 15 May 2018 15:36:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpQd+tbuBJRNaijvizO+o++ar8SjN1LchproLxgNZoQ56wIHmla2ki1pCzU3eXa20V8Oi8e X-Received: by 2002:ac8:3f72:: with SMTP id w47-v6mr15586192qtk.318.1526423763837; Tue, 15 May 2018 15:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526423763; cv=none; d=google.com; s=arc-20160816; b=RTleqa/YNJcazLEsc4NUZ+nOaC55TukrfhqhoSlI+KirXwIX/rXXVoloimynTLxdVC L8QGZFCQAMkZkDW5Dux7eCmKWk+aRvSCvjYZ6qPzwxwFD2sJsxiIaXl0N7JviqyA/nwV s+ccDxj/S5KIAlJZlRYBuo5bcVQvMAa0RO65Dlg0ErYTynGw/sRkmbD6vuUVpil4w8kT gGU1cRleAXwNUqEv9lO65kXNnZth8XHuBP3qkh/M/cVowQojBtpMhkamcOlZ3aX+fwPa MHMG74PPDfO5JChy6JrDN0jXEnnZF5xGb4SR7oHxIPyJHDyo/m92WwkWeTdcqWlfw0tz i+jw== 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=LN8hMFBxWacRuSjT1w6rsa2VPGc7UIl06fa7YmQdT4tAwwB1HvIeQTLZW+dEcLLXG8 GZVhcg2MVwGmW4P0KPsK7XHgoUAVP7lLbE8UNJJRjhUGbBGOLvynfjQ/sEhy1mdszyTg lA6ykUgwdaoHQ8IqW8qEmBgg29DlSXrlz14z+2ue2BTqIKwvgsKYT1IaC+7pe4tq2+T/ qt42qL+MWQJEo8nn6KkAb6Ecx7ssqL/0GpJutF2cR4myYFAUmtKLiaCVVgdAfgCTpjOT wHkR00jGqZ3enND3ZMpVN9R3pOfv3X9MDZfhjLR5U6jv/X9lAULGOo8lXsVuxfzaRP7P t66g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZKA1cgEe; 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 t6-v6si1199756qta.191.2018.05.15.15.36.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 May 2018 15:36:03 -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=ZKA1cgEe; 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]:36351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiY7-0001BC-6L for patch@linaro.org; Tue, 15 May 2018 18:36:03 -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) 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-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr16319356plp.75.1526423169236; Tue, 15 May 2018 15:26:09 -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) 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+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)