From patchwork Sat May 12 00:43:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135595 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1570644lji; Fri, 11 May 2018 17:52:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqE3rCAb84e1ZOZIj0rlNxGTI7XlxpXZgup7pDJXT6GJN9zjoa0CtMR1koFDd+ZKkVbrr5Z X-Received: by 2002:ac8:4a2:: with SMTP id s34-v6mr260019qtg.129.1526086376778; Fri, 11 May 2018 17:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086376; cv=none; d=google.com; s=arc-20160816; b=pLQIFtSHjmo5xuzviCloCb20tJheaQPdAUN/14ylyMGGbw6cMaJO/AFZaV40IsfSTu COqDQkniJDOalCMwaGF5/qzucjwEkDSYlulVcWq6nVX+HarnOyAjOjscCD06TmOfd+uf LhfJrBJ8+2BqIZLbwIveZNo3RqlfK/Yw6Yzbr91YdTgj2DjKR1IKTiyNw4G1uBXhlv7X PQSG5XVPTVmQ9LB8YjQysyQxlx4bDw/rDk07aKIqkH/DKvopHaWalRnIgAf0R/WWeU3a JZj1VKGyvTy+MzAA/NLWrJQgL2C1AgW0HlktvZoLqTZQvFENBYpsw7vbDH4d0jcCKK+z 3Lcg== 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=+6dmYgNBq5ftwjyPS2WMF6O8R65wvbccZZc/fwe9HEo=; b=pwQlBn4PwW8Uu0zASuiFbK7LRx0INRJr9y7R/gD0DPDcas5W9o7I+Ioyt+h7R/9dtF ALQcQ7hgX7G9FRnNHrwalqDTkUezkpKTCft4QzYniW5M0doFpk2Uo+MGKMOnIMsCs8gZ d5RMnXnfCRzQf90EEqWZ1z4qf6bzwa/hJCYWIK98UiftyrABIQlNv5u+g3barYVWN47Q noxpb8GU507mAzuQ+svhGWnXB/jv2bVLY49rW6AO2+zG6LEjJR7R86YKqV9TtY5kIeoG fWBikAM/ZddBQFJh8GiI3mW5wsF1pRirlnWl2Hg+LH+tlGxf0Qebz4dXcmL9Mu2T5C3e J1dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=X3MPVopC; 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 a36-v6si4341135qva.273.2018.05.11.17.52.56 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:52:56 -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=X3MPVopC; 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]:59302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHImO-0007Sh-8d for patch@linaro.org; Fri, 11 May 2018 20:52:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdT-0004uf-Eb for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHIdS-0002z1-3B for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:43 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:46622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdR-0002yt-Tr for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:42 -0400 Received: by mail-pf0-x241.google.com with SMTP id p12-v6so3425557pff.13 for ; Fri, 11 May 2018 17:43:41 -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=+6dmYgNBq5ftwjyPS2WMF6O8R65wvbccZZc/fwe9HEo=; b=X3MPVopCO6r3GXP6nGcOxs8hbJSx/GasHRZVyqy16BQF32HRvhFcqt1gWcbT2BXZAV qHYOwlOuSZlvhxykxSO3MuMAhvXS2bvwxLIteyn/iRz83w+m4dfPLhYz/rP4Uh22kwvD zNWskG7GuLo1uRmikbhCidqU4xM0xe42JpJxo= 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=+6dmYgNBq5ftwjyPS2WMF6O8R65wvbccZZc/fwe9HEo=; b=YflwkPm8YlgJsUACrxE1r0cUsJRX7p+zZ+CbiDh+Lj8a+o2ehPFBMl/fyW6JxNWpMb NJdD7GpTlh8nBT6VMMzrNO/lWTt3phe6Xv4IG09gXw/5Qb1aZ7KD2IumM2wdLvpP8Lm5 iLTyIn7QFgZtU3IATl+3mt7qCP54L9tAwkSs7ORaJaN/LbWkyxQsDs65KQwhNIxThCaL 4wrtGZNEV3ievdce4iCOnH588WQNUrbKoEXp8BT37YP80p5zxRqge99wlq34AVrHgfoS GtKaWElknHXsK207dD7f8p8Lglll/WiilmMm43AaPb5SG5lPZ/clzqLLDhbiMSJp1C3j QGCA== X-Gm-Message-State: ALKqPweX1FChTlTEr/7fvmJl4ChI3F9zjvdNeZEf3g/evViZj238EN5N xapAMEYMFeyV+x9Ce1O+3ZECmUu1nlM= X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr991108pgt.429.1526085820557; Fri, 11 May 2018 17:43:40 -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.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:43:03 -0700 Message-Id: <20180512004311.9299-20-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:c00::241 Subject: [Qemu-devel] [PATCH v2 19/27] 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 , alex.bennee@linaro.org, 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 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 Reviewed-by: Peter Maydell 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; }