From patchwork Sat May 12 00:43:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135600 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1572940lji; Fri, 11 May 2018 17:56:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrb7svHa649p0l6KTswypMPiMTLyjcn+AdosezDL8UPYc5NRIgVyrP+QQc7IxVVKH/Qpy3h X-Received: by 2002:a37:7844:: with SMTP id t65-v6mr292541qkc.56.1526086574851; Fri, 11 May 2018 17:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086574; cv=none; d=google.com; s=arc-20160816; b=xn80nYqPLUB8Mykp6eP8fzzZ2+o76eNCtIHq/1X9LFxv/dqEFETyMjokqjVV2+o2CK NYXEJVsLQwGc0hh/HTh+cX/4auykz7VlLoytY3pypQY9zVe+qqkQfZnhtpCMhuqF0PmD vbxsI32XTQEMAxjql8/2Pw8a6ANfZlbQTsuRV0WtNmXY3ahkr74iqB9k9G2DCvyqhbbI x8QDEOAzMozx7LOZo/R+ak7p7ds2urUbi4JcQym62uEz5fAk7hqUeiUsBsL/zzZs8oqD Co5F36BFL8VpcsGTKCUPk4vIlZ7ezB+rGIn57wdhNgJuOJz+Mp34m0FOIY4SrvL/y4vO p9og== 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=N/MQDXmC5P0rKEPWLGL6olcs6gD/4PAiety6G0UTpec=; b=fkxjgnOFJNfnTTVRc9EvoUG/orI9bitK1I795Sb6hHXNYFv5A9flE7lH/pHhZ0r+Vl qM8t+KupytbZ+bA8w0R872xI2kf3kDB4QDZzkwzJ8UrEMjfgXk7HQk6t4u3G1pHsuBZt 23g2wZ9/b20n0BWwc4kHv0Oly4A1fKm4TcZi8o0bq+SZCyLxhrRE4ku2b/p277ZTP9OY QnUQBTFk/bCU+ycRyiLyLiCS821zcmCygmzaHczqtXaWpFVWYfh2wdZFVWxOMsLI+DST pd9dJwOQLUoLWxWo+OnZK/vSRvLZJEOezbRszhEMq/l+tipow3QROz7Ln8EuuTrr8d1J hwFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WTpSZfYG; 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 a67-v6si715242qkj.306.2018.05.11.17.56.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:56:14 -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=WTpSZfYG; 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]:59528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIpa-0004G5-AR for patch@linaro.org; Fri, 11 May 2018 20:56:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdV-0004zz-TP for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHIdU-0002zp-OC for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:45 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:38528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdU-0002ze-II for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:44 -0400 Received: by mail-pg0-x244.google.com with SMTP id n9-v6so3077338pgq.5 for ; Fri, 11 May 2018 17:43:44 -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=N/MQDXmC5P0rKEPWLGL6olcs6gD/4PAiety6G0UTpec=; b=WTpSZfYGBbtWE0zeFg8yu3nWCeI0dJHv+BWU2BHku1+mvzT+MBdavtsJXdI2vxYbUw L460RcHIL8fB4HQ/GMHrF4baXEtBXKU65l8a2+gVnDTMDcujziD+c9bwbtMfXdmnQWgc HKyxA5J7l6zH4jfx8vaDidXkxNey8bjHQ3XhQ= 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=N/MQDXmC5P0rKEPWLGL6olcs6gD/4PAiety6G0UTpec=; b=s18GgmrRPqMKH38vO1w3sv/bOY6dgPYfvMt/Z352xDsqNjKdEYzqZr71AY7wY5dxfP hTfhr2DLvpD3JsdhCb8VRYPZu1sVV2sBsa+FrvRpkUjdLyA7ZNPK43z2pPF6xxmGM6/t RO+rOvevw3QFUCIrJwWz9UWrj67z25pGzDfJoKEKbpvq1l5lH3BjEqA+O4B+liekkdw1 oTh6X8TH1t1seGcx76pyvST077Xp/sHmC4haNDiyc3dX4L1P+rS3HN+1IVA5krVSfOz3 biP7bjTckY5lHlX4+qSnX02mOPUJsb2rt8iH0/ig3lxcIlNg4jafApOfwaFC+Vy7KIbZ xO4A== X-Gm-Message-State: ALKqPwf1i1XnmMZBKGs7kUYG1rRhkpj+q4efQL0HfVh4y+dQokbvRwIm Iwj2WGD5QBQWALCiMg3ufiGtnIPELo0= X-Received: by 2002:a63:6407:: with SMTP id y7-v6mr962401pgb.373.1526085823179; Fri, 11 May 2018 17:43:43 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:43:05 -0700 Message-Id: <20180512004311.9299-22-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:c05::244 Subject: [Qemu-devel] [PATCH v2 21/27] 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 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 Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/fpu_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.17.0 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 */