From patchwork Fri May 11 00:43:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135461 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp253318lji; Thu, 10 May 2018 17:58:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrGEJPBiiQrhj6m7DiaXZKzkHn7zpzMUo+14u8TZVx5X+5e2lR9oA4LgLIc7Qh+yHgeBHgl X-Received: by 2002:aed:2605:: with SMTP id z5-v6mr3725890qtc.72.1526000331298; Thu, 10 May 2018 17:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526000331; cv=none; d=google.com; s=arc-20160816; b=cwEi8phUY9xwqUBv9Q9ZfrjEtLE9a6MJqKYU+oJNlokIsCgM2fOKtKUC43nxwnCNFH yS8es5Q06HUZLTp+U42W8Tdx+H20VGR0hwxKyUxYbWyAKOvK7HFeHg1In9mKLyRlPO2G Z/WS92tar/bESPsgLiHzrG1B4S9f7dVpm31tDlCXTE9T4kffwRxtd+o+z+IwxLmoruKT 25IyFXYM7WqzXtMNdo1qCFDS3d0VH8B4JOLXm87RSaSs9fOHseqtfvXkUuVt913pJTyY Ot7RgVGdPiDU2cwvJQV19KEsviS42LrogWsgoaVQNuL01tIkIpTX4qrlXMroEJgoM5wJ /GIQ== 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=6z5jX9TCxKiZSZHZWyKzIG2jpQGZx1m9dxkm709/st0=; b=KuDah/pJNSkvketEpTkSzbfBPw7dM3Zj9/QgBpZRJqfj2DvJbRCxkWKuCKX7nIP5fC 4aKc4iBS7UVfipznS9hTEhfkJUvzQDUKj8RF5ldbOXC785n0J5hF+5OwAtccCDqXcrji nmZPUpIFfWVeZBy3nKdhrYyPoVAj/5Nx/sNIUUxrtPr5lBJuLUFKHCFWwjZDrlpXoioI KWDTRMqWxpXbtfXM56oXpcP4lhUWvDwh5609F1oEiB6NiZXm/Cvnfv0Zcm/Prhu5SPPl bKTeeCkwLRPWxU6sTeqeWgazkK5yoPfmb7g1Y8LlRgfYUo2w/6o8TV6+1eXUvidX8NXo bwOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=L5uqh3c3; 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 g3-v6si304798qva.88.2018.05.10.17.58.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17:58: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=L5uqh3c3; 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]:36231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwOY-0006Fs-QD for patch@linaro.org; Thu, 10 May 2018 20:58:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwAN-0007Jx-FW for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGwAK-0004tA-Hd for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:11 -0400 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]:38439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGwAK-0004sx-CM for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:08 -0400 Received: by mail-pl0-x242.google.com with SMTP id c11-v6so2262524plr.5 for ; Thu, 10 May 2018 17:44:08 -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=6z5jX9TCxKiZSZHZWyKzIG2jpQGZx1m9dxkm709/st0=; b=L5uqh3c3hIYMI/IpY5TpWPrY95wjmnDQle+jD3iZROAer2EGLycesVWmtZJXAkfZCv BCZqvvuCcKfQUNwrkehZjHRITVWtJXC9maz56ylhVIACnLSc7oiIQsJtXGp1pWy5OtHW 3aMJZ4D8hzWd4WR/TJylueNPuFbirgfzkwVZ8= 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=6z5jX9TCxKiZSZHZWyKzIG2jpQGZx1m9dxkm709/st0=; b=g4mq5nMoS4ryASvUn4QlyDmvL5oUm59sjlQOvTdBzMGOd6cJsf3uhRC0OnzY84P9iN 7dfCFNLEvRsfNLWsrpWEs0vJ4YYZtrHaEq+QMxYDdvJBrBKR8JV1S6Ael7B9upVuenOq tMuuTn3YNQiTBp5/VhpY59zgdQ+X/pZz1zW6Ym2ULgN9JwNv10+NZetfEL3stwvOV/cB XJgOHUISjoq6MN1N0QA+awleEQIVvUvpznNaqBwyHi7UklEOP+BFxkhmoa6x72+MDe0W tOfQBQgOqE+LbepGS6wTUr/b3Bbm7RFw/KnrW3LjG9wYVu7z5dfVXJrE+EyNmlR98f3a 48TQ== X-Gm-Message-State: ALKqPwePGkj+k+JEnSscLN32HDaqlrs8TAUGBPCwWaGGopZiOfim2Pr5 euh0Se6jjDcd7yi3SurOwnVdZ4KYmRo= X-Received: by 2002:a17:902:7288:: with SMTP id d8-v6mr3351183pll.218.1525999447122; Thu, 10 May 2018 17:44:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:44:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:40 -0700 Message-Id: <20180511004345.26708-15-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:c01::242 Subject: [Qemu-devel] [PATCH 14/19] target/s390x: 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, alex.bennee@linaro.org, Alexander Graf , David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is now handled properly by the generic softfloat code. Cc: Alexander Graf Cc: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/fpu_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.17.0 Reviewed-by: David Hildenbrand diff --git a/target/s390x/fpu_helper.c b/target/s390x/fpu_helper.c index 43f8bf1c94..5c5b451b3b 100644 --- a/target/s390x/fpu_helper.c +++ b/target/s390x/fpu_helper.c @@ -269,7 +269,7 @@ uint64_t HELPER(ldeb)(CPUS390XState *env, uint64_t f2) { float64 ret = float32_to_float64(f2, &env->fpu_status); handle_exceptions(env, GETPC()); - return float64_maybe_silence_nan(ret, &env->fpu_status); + return ret; } /* convert 128-bit float to 64-bit float */ @@ -277,7 +277,7 @@ uint64_t HELPER(ldxb)(CPUS390XState *env, uint64_t ah, uint64_t al) { float64 ret = float128_to_float64(make_float128(ah, al), &env->fpu_status); handle_exceptions(env, GETPC()); - return float64_maybe_silence_nan(ret, &env->fpu_status); + return ret; } /* convert 64-bit float to 128-bit float */ @@ -285,7 +285,7 @@ uint64_t HELPER(lxdb)(CPUS390XState *env, uint64_t f2) { float128 ret = float64_to_float128(f2, &env->fpu_status); handle_exceptions(env, GETPC()); - return RET128(float128_maybe_silence_nan(ret, &env->fpu_status)); + return RET128(ret); } /* convert 32-bit float to 128-bit float */ @@ -293,7 +293,7 @@ uint64_t HELPER(lxeb)(CPUS390XState *env, uint64_t f2) { float128 ret = float32_to_float128(f2, &env->fpu_status); handle_exceptions(env, GETPC()); - return RET128(float128_maybe_silence_nan(ret, &env->fpu_status)); + return RET128(ret); } /* convert 64-bit float to 32-bit float */ @@ -301,7 +301,7 @@ uint64_t HELPER(ledb)(CPUS390XState *env, uint64_t f2) { float32 ret = float64_to_float32(f2, &env->fpu_status); handle_exceptions(env, GETPC()); - return float32_maybe_silence_nan(ret, &env->fpu_status); + return ret; } /* convert 128-bit float to 32-bit float */ @@ -309,7 +309,7 @@ uint64_t HELPER(lexb)(CPUS390XState *env, uint64_t ah, uint64_t al) { float32 ret = float128_to_float32(make_float128(ah, al), &env->fpu_status); handle_exceptions(env, GETPC()); - return float32_maybe_silence_nan(ret, &env->fpu_status); + return ret; } /* 32-bit FP compare */