From patchwork Tue May 15 22:25:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135961 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp95803lji; Tue, 15 May 2018 15:51:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpvP/G4a4htsLU/yOCLfpqpyw8kwDbPodzC1ItzeQr9e5XXd3p5QbxSxy0pqEfTQaq1ygGy X-Received: by 2002:ac8:2546:: with SMTP id 6-v6mr16193852qtn.308.1526424671701; Tue, 15 May 2018 15:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526424671; cv=none; d=google.com; s=arc-20160816; b=F5rLxm+INCQPByw8qONCn+5oYSUDoQHF+qf0x39VYTZLQfnJVxnNf/zhv4oApysHIa MNHBwFYwem+YEKuF1q/JWgksjAU2Tn/M5k7Vgs2S3t506f5SjQFcqe4FKjnUXOIL950U kc6yCAOU1xQHJZp0YnTtWZ8gNmTEiUChPho8/44XnZ2OOxgmEBM3iR1JCCqRWqUBUA2l fb2b8RTEqmsndaMLnFu9BkvAickw5IxZ2/tRKPTAcleiGT1+vYJbTE193+tyUAbWzmrq O6sSgtvd60RhnpY85YHrAGdQQwa4GoYbw0Dd/zVGtfdMNVj2N8hELqWkldZoGzo4md1W Rcig== 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=hKbQ0Zua3Zx8Bqiv9F2INV3KxDbVIPsGYi1ksPfnzDVUM8vCXHtFs/IKCU1RB8bg+Z RIvf9vkv5d4QbN5g8rUglR1jTAO0WLAgLVhQUyx1Ou0SO0oq9sjPHviaMtPerfgjGDAl IDyl/casVoFDuLcaf1pEt+P0D+KIWsrj/tjxviGpTx874pC1xZNtArJCzeBBbMHjWeuB 33vqUmSE3SQpohh1rQhBhehQabyuJSAUtk3FueDRtA03TWR/jTY/k6VEEf7nnTGqbBkm AlbYA3rFsqi3Wf0O3pS708GJw1hWUm5XTV86VjmEVSdzcJmPyvkGcyOsZLUvOmJtKx6n KMPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HlTzi/xA; 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 t35-v6si1211230qte.147.2018.05.15.15.51.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 May 2018 15:51:11 -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=HlTzi/xA; 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]:37204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiml-00069I-8h for patch@linaro.org; Tue, 15 May 2018 18:51:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiOb-0003cq-Et 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 1fIiOa-00072Q-4i for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:13 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:40066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIiOZ-0006uI-Tp for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:12 -0400 Received: by mail-pl0-x241.google.com with SMTP id t12-v6so863499plo.7 for ; Tue, 15 May 2018 15:26:11 -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=HlTzi/xAFRV0csDlNwlWCAF9B3+CRQo8RPaqeKUUNOZ0DOcP/ON814vCLgM4Zb1Fwr t3sDjDVnpEwx+OEZWMCOeMEqcj6w9pAix0twJCV7eQNczmavTcydC39fTkdyqFtAQPDB TTjlRYN4pKGQXtWwYt8oV94etFJw0zOpIzj/Y= 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=HNIRrSRaY3uYF5EARuIIDRBNtUIKfav9JSTlYsoD6fmsfPsxXlKl4R/F3+A3Howceu JmbSyKq+4a8mDd0BNuFH8w3hpunnxEDEdWaxbnHJW1Vqm/M8QyhfRV67H6yDhWxr3UPs 7PGZb5RMpx6Je30WLtAeqYjBjq625XKkKyjWIzTvw5MZ/gjVBrBFN/+qJujDJeucBeqm 6nBAA1bhegqDNlfMjjI9j9NCWjUjmG+YSVo3kS8RX13mAOb5gYaOeuE87SOlq5MRD753 Gv8ot5FFhaDHUYuo4Dx5dQCzY7W1fQwW3g8Hd1lqPE2FtLYtMzbBDnJN0Pr7Y1rrk7BI SQ9A== X-Gm-Message-State: ALKqPwdNP+VZ4J3KB9Zt3JaBsBX3gM6p3O1GiAigivpLh/jh26TSHYa8 aRlgFzHFVkyTNrngHYTSn9Iy1q7W2PY= X-Received: by 2002:a17:902:8d8e:: with SMTP id v14-v6mr16504899plo.387.1526423170584; Tue, 15 May 2018 15:26:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 15:26:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 May 2018 15:25:31 -0700 Message-Id: <20180515222540.9988-20-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::241 Subject: [Qemu-devel] [PATCH v6 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, 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 */