From patchwork Mon May 14 22:12:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135773 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp195913lji; Mon, 14 May 2018 15:25:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQMMyrZvZVSir6IM+9yZZIg9t/3Pn4SNNUBp49wM6MzBpbf0p6aNvhIjvxytSXTRQDgS3c X-Received: by 2002:a37:dd85:: with SMTP id u5-v6mr9891820qku.376.1526336725320; Mon, 14 May 2018 15:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526336725; cv=none; d=google.com; s=arc-20160816; b=pjGw+x9019b3+xVzFgczIjf2M3zOYh6zrZwL26naDKLLai/FE5gtrSPOz7k/IBfywq EZc1w3gA+LpBPtRhTpGrV2/FcKqsOtIgXeROVrYi9JuCTDdE9yJvQv2QO12rFJXRcoMn PFA0huAQbeUR92uWtkyh49pZDa1sDoux8HawhAyViBQ4fPSvnFG7MFABgFXgV3XVimtz l3+d9hTckNLZz4kuiX6+p8k5oL9nhejGvU4Ci3HKyEDLklsKqhAgqSAXgAKoas8B3Hgm EQwaj2FSnmHl2C78CZQee6kU/qHsgzWrQ308nEFpD64ufiftkz55Yb4zjp6fm0IK0cJt 4Bug== 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=DygSrQscWDMYzFF29KywsXk0CUgD8h+By8b3P/yEPmrJd962rqvkj3rUbE4mtukbn3 TpIbzsJTSUfC2tzKbUHDQQBDnb0LIMoONhs8VrtF4GdTb8ABU7UN27q99n9jdb+Kn4lr Rg5TV0bv0irCahTdEgol2JRrw9+fyE1gJWjGxG63crirOmfarW8vG0gB5Cfyvwg8uVi/ GXtso5NaBQ6SL0isomA9BpMj+2O54WFWHqneGrJHJWQCDSH/cR3RgoQd2mbi2guhGzNA xHKYu4Pm8INmb9cvURmtDc4a8Ok7JfO3HtCK92fbuTmnruwKFXOKownEOK+R9sHx3nfo G1FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PVWlf9na; 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 s26-v6si3363882qkl.331.2018.05.14.15.25.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 May 2018 15:25: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=PVWlf9na; 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]:49949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILuG-0001z7-JN for patch@linaro.org; Mon, 14 May 2018 18:25:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILi3-00086n-Qk for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fILi2-00084G-Io for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:47 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:46272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fILi2-00082b-DF for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:46 -0400 Received: by mail-pf0-x244.google.com with SMTP id p12-v6so6656624pff.13 for ; Mon, 14 May 2018 15:12:46 -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=PVWlf9na+m230jhnYcQw+laf+8jfu7s3eAYWA+ASbwYchpY6hJhYe7V3vjZAlPNy8d rmFp2RMcRCKpW3TMahvSK4/3x6J1MaN+TUuls6lzXZzXUeMMyUGq4JPV+47z5wH4eGOo IUN+fxRv+IESeGxI02yD8dA9yRFaBGT1C9fX8= 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=kUxY/rgNNS+KaujcTzMQvhkMmrn0XSnbLn3CxbqSPmgZsIzqqxibh1pJjdiPrDQ/we L7hf1ugVEelCQFSXuhHlcAc0Xkd+fwOD4uuXDp7JY6TI67V99voPuvz3nh5IjCqwoXye JKJFL8hWxEI5Zyubl+8lgWBUIxBabnHzWR2Nlh6zKcxdT8xoInIditcUj8Z+AY0GLsbb h4x5073AUucoxsS3ErvqK1ckmHgvYbo7QPPuCsTqWUATEnkYqDNqJPFXZTOm3lRwuiTE VZHFDEpNMhB8moBIZw/NZPKWwFervgI/jC9wMjoqGi4sq9XIQDptEBIpHxtpt+7bI5Qy LqIw== X-Gm-Message-State: ALKqPwfEYaO+Khy3+2pEgb0TpGXsmEH35+mA+2g/yfF86xQL30ve0fdj 5B0qYaywHL6yyJ9+7DnBj8FS7UmezCo= X-Received: by 2002:a63:887:: with SMTP id 129-v6mr9671439pgi.17.1526335965161; Mon, 14 May 2018 15:12:45 -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 y2-v6sm14512457pgp.92.2018.05.14.15.12.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 15:12:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 May 2018 15:12:08 -0700 Message-Id: <20180514221219.7091-18-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514221219.7091-1-richard.henderson@linaro.org> References: <20180514221219.7091-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::244 Subject: [Qemu-devel] [PATCH v5 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 , 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 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; }