From patchwork Wed May 16 15:52:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 136037 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1135276lji; Wed, 16 May 2018 09:21:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8uHmTsc1os7WtTLzJAheO2IGzUXijMRwKSkjadh83Ev7RoT517Opfjut2QfCcnSgECmrC X-Received: by 2002:a37:50c4:: with SMTP id e187-v6mr1586743qkb.166.1526487685910; Wed, 16 May 2018 09:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526487685; cv=none; d=google.com; s=arc-20160816; b=BpqpEMF3Mw+967QD+q8+KBrnBTvXjI3jUdCfrcaIVodtK98ggWuep1oIVFd5hvvq9w zuT4PRv40nIN/hd+HaLVPrhg6QWf0s6tE7busPcu/gfKoqC0S+xUElqRrwGYNaVbTlm2 zPhCyHKLjs/rBHaxzSyo/bb8KwFbUbAFTcM9ywcuGe0ke52G2a+bipB6nHjY2WEC5TzA tfGddcPjLxSTkVxgPartPtClLoddBOLGsnxFqjz6H+kkl+Ht47Xyq2HWsTZYSxJXv49X 0yTOx1CBE5NhvC/BOxoLiXx1CQd8X1PKFLwWhqTeCYXkARwqJb5xjpcCsYcWiYIqmIh5 26gg== 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=YG4WDuvg/nU14CtfIK1nI16sf1EHjyzdnNJh8QSrA1M=; b=NyJNI9yBVkM8+fIE9/Rru8CuJLHIxtHyjIFtbtAk+vbb9sN07GOL8+LMugGJjDJhfe IwiaegHy3IXIHPvcE0lWYUCxXSIA8M6F8uvfc0MrqcDaoDbJ0JMPrPy0guMCBrsKqh4n nFvT2jdhqA4mjluNoer86dupSdG7UxVsS+lNdpq4xqoNF8C10/Ozc2EIl3NmS6UQ1yYc oPt4SzJUSOGV4NcRdGQAtLgqHQjeyanqyKr4+S807jK+lN8Vmtib2nR1NZJoctOSZEnb fy8OZERqUIWylWOAPBOOALNZ5Mddoccbx/9mwDBvGU8hSkbM7YDKjy7Ha4N/HkEv1eig LIag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZX/fcsS7; 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 h33-v6si3129112qtb.86.2018.05.16.09.21.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 May 2018 09:21:25 -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=ZX/fcsS7; 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]:53733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIzB7-0001Jt-AL for patch@linaro.org; Wed, 16 May 2018 12:21:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyjo-0004XR-Lp for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIyjn-000570-O4 for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:12 -0400 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]:46827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIyjn-00056d-Hu for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:11 -0400 Received: by mail-pl0-x243.google.com with SMTP id 30-v6so659297pld.13 for ; Wed, 16 May 2018 08:53: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=YG4WDuvg/nU14CtfIK1nI16sf1EHjyzdnNJh8QSrA1M=; b=ZX/fcsS79ugntUoW/pA5HIV3duT6gMqBogWaSz0IkXw+OdtVFKxc6Llv7ZSQ4zOnrh acjo0cRFc+tibVgcmt9qp3XzIO6sw7cUyji5Stl/HpPBWr2wx/zdSsrIBnzQUwC3dKU8 dwN5hvinAEdobwmu9D2oXbhi1Jc1dkdlfJeEU= 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=YG4WDuvg/nU14CtfIK1nI16sf1EHjyzdnNJh8QSrA1M=; b=gGNenm3RFTu+VdsVZumeGw+Jr0s7bTO9KLr5xtNs3h9ws7HGLrf2v9c9LP/kfMEyLR YjlfIvsk1vTPPGj8p4GTxVqoi1E9k9jDwmi2kyPUgiREWiA3lM+Y4RyvyzMS4q0wIM40 v8qIwa8FclePUo7vHlgY++1leaE5G9Yi79E80XBuDCq9WujvSJlhBrGk+WkMxCDLqB5j GcTHup4QcPQWgrJ2LEpnKyg81ZDVXL4wex0XKSmjoFbI8vMbIN6ofdSNCupwIZcz7i2I 2UlmirhAK/wDTAXZuX0Tt6g5I1BwZiqPY+5dTJ9t4cD2X0JYNNat1QrMIkige/h6sADu OsaQ== X-Gm-Message-State: ALKqPwe6fRNiuCwq2fbulgZ7lFar6iPZs4PMz5Fk1ZhTlgc3IMNU/KlT gOrB12fXHoT/yPW4uE7rkdWeGKZAmQw= X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr1461158plp.75.1526485990115; Wed, 16 May 2018 08:53: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 c3-v6sm4966632pfn.62.2018.05.16.08.53.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 08:53:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 08:52:32 -0700 Message-Id: <20180516155243.16937-18-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::243 Subject: [Qemu-devel] [PULL 17/28] target/mips: 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, Yongbok Kim , Aurelien Jarno Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is now handled properly by the generic softfloat code. Cc: Aurelien Jarno Cc: Yongbok Kim Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/mips/msa_helper.c | 4 ---- target/mips/op_helper.c | 2 -- 2 files changed, 6 deletions(-) -- 2.17.0 diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c index 8fb7a369ca..c74e3cdc65 100644 --- a/target/mips/msa_helper.c +++ b/target/mips/msa_helper.c @@ -1615,7 +1615,6 @@ static inline float16 float16_from_float32(int32_t a, flag ieee, float16 f_val; f_val = float32_to_float16((float32)a, ieee, status); - f_val = float16_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1 << 15)) : f_val; } @@ -1625,7 +1624,6 @@ static inline float32 float32_from_float64(int64_t a, float_status *status) float32 f_val; f_val = float64_to_float32((float64)a, status); - f_val = float32_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1 << 31)) : f_val; } @@ -1636,7 +1634,6 @@ static inline float32 float32_from_float16(int16_t a, flag ieee, float32 f_val; f_val = float16_to_float32((float16)a, ieee, status); - f_val = float32_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1 << 31)) : f_val; } @@ -1646,7 +1643,6 @@ static inline float64 float64_from_float32(int32_t a, float_status *status) float64 f_val; f_val = float32_to_float64((float64)a, status); - f_val = float64_maybe_silence_nan(f_val, status); return a < 0 ? (f_val | (1ULL << 63)) : f_val; } diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 798cdad030..9025f42366 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -2700,7 +2700,6 @@ uint64_t helper_float_cvtd_s(CPUMIPSState *env, uint32_t fst0) uint64_t fdt2; fdt2 = float32_to_float64(fst0, &env->active_fpu.fp_status); - fdt2 = float64_maybe_silence_nan(fdt2, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fdt2; } @@ -2790,7 +2789,6 @@ uint32_t helper_float_cvts_d(CPUMIPSState *env, uint64_t fdt0) uint32_t fst2; fst2 = float64_to_float32(fdt0, &env->active_fpu.fp_status); - fst2 = float32_maybe_silence_nan(fst2, &env->active_fpu.fp_status); update_fcr31(env, GETPC()); return fst2; }