From patchwork Wed May 16 15:52:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136028 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1120010lji; Wed, 16 May 2018 09:09:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9RSywqi6feXukVDRncwQtuzoySp6TYMhoJx3AM7y+scdrr/Mfa77ecgAMDTomjoHyXwsk X-Received: by 2002:ae9:e105:: with SMTP id g5-v6mr1456439qkm.236.1526486988263; Wed, 16 May 2018 09:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526486988; cv=none; d=google.com; s=arc-20160816; b=daZenB0ts5IP8u0tINNwMwBN3/LKBEHxPN+i815xQN46P4o+hgdEunkeFTeQrR6x3x Yqs71Npnd4Iojy188yunQ54uw6oYVa1aNPCPZ68pdDLZGm7Dm9GuET33NbtfqI7+BiW8 21beD568ARWIDc+FA3MDwg+af3iLUfpp6EI12JmqrTwF/OMYbh4UO7cXHIyQ2TuHRPBM TjaOAxOTEIMaNv8qRZURbQHFb4MNkWNTi0RE+qlUzI6mQupqbOK+ir9olegWf91k/5zO ooZOJrj7fNjFwOKPaL5pZ1Hthd+6IZyhJQ9564DYKY5fCWrMalZ4swWQomNcUqOFKQ36 thtA== 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=cyUfeDISnbAg1A9pCdSKOdKYlJu09poXrQQM0l/S4mgTI9NcRH5TWtsnXHPpyA1XpE oIBdUwIzPysrJEu1lKhrjFp2G9NpIt+Wd9+/ZL0cJ4hIjnTq2t8Gw9RFonz+xFRiEOYI YqaKTvapctou48vz7BOWvEPomtrPJ2DLj+bUxTo/CCLrwYb1Fr6oSvEvgJzqQPdLjJCo BqMH8kdrYtevD6DN0KmuTSsNeXwp43CyZU2JcPY3ENhhMAurtBsygMgAqjVoWk8/oGSW ijdoPAPPnEUnIUWN6Ct0M32PVfAuWeGpdVt2DW4EACzt9Is7+TbvHrv8rO6lLlIN3jc6 UFBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=X+Dv0iLk; 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 z5-v6si300927qke.383.2018.05.16.09.09.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 May 2018 09:09:48 -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=X+Dv0iLk; 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]:53220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyzr-0008LB-Ip for patch@linaro.org; Wed, 16 May 2018 12:09:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyjr-0004aY-E7 for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIyjq-00057W-IJ for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:15 -0400 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:42195) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIyjq-00057K-CY for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:14 -0400 Received: by mail-pl0-x244.google.com with SMTP id u6-v6so664617pls.9 for ; Wed, 16 May 2018 08:53:14 -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=X+Dv0iLkdyk/7V0n+yqmKYYVHrDXpI0Q1yinXoHL7rpZPY230tpRnbysVsn0NpGYLf u4rkpcmA9sDpsI6iXbgI6wA57ASVlibYWIerVZQ4KZ7QXGmAf9MlFdBTXF5NzHDDmMn7 yWVLK0rm7CLNaKmQa3PdmKgP77Kqm37T+NnNw= 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=G1yUbW31rh37QarP9Mcc/idsBTpD/pXaaYLySsiukyh16+B92wKpmvixpEgagqAYgm vqxgp/VzMBwgz0GlEX8jeW9i0iWPMAYwHDjDUKBmgijFrYLf0Do9j1Qpk+cZx7vDTAQX jRYprYo311xOBPbZ2P1eyGlU+W2kjgQxeClmEANghQ2PUkmEZ6Aycy3WRXG3rpcflAr8 D0JEAPqBsLquPCJ7BgLtlfk7OX8sbJY+T88PQ8nVaHBzuB/lp5YO/TYR3LKskamaaKBe tLJOokqIpJZ8gHM2vnwqHgLLKFUapQtZ7Fs4Ksy5oXnr94JkJSGREYO9DgSARWgS02Xe kpwA== X-Gm-Message-State: ALKqPwdUI/H0OjYXyBmcoksCMgXlEi4Xa056Ssz1olnP+ZmjGJ0vQx0A e7QKMuf5jnDAizv2vxLS6gAEuWuTCaI= X-Received: by 2002:a17:902:bc84:: with SMTP id bb4-v6mr1459237plb.84.1526485992901; Wed, 16 May 2018 08:53:12 -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 c3-v6sm4966632pfn.62.2018.05.16.08.53.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 08:53:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 08:52:34 -0700 Message-Id: <20180516155243.16937-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516155243.16937-1-richard.henderson@linaro.org> References: <20180516155243.16937-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::244 Subject: [Qemu-devel] [PULL 19/28] 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, 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 */