From patchwork Sat May 12 00:43:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135601 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1573241lji; Fri, 11 May 2018 17:56:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrUCIGHd7x2gK8Q1deYfE/1kQBTd7wgVy4N90RAVLYsF8j8kMemt87mP3Pa32VIDkKsfBIL X-Received: by 2002:ac8:530d:: with SMTP id t13-v6mr280902qtn.388.1526086603223; Fri, 11 May 2018 17:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086603; cv=none; d=google.com; s=arc-20160816; b=f3yalmpXAvMZLUGuyujdDMBf6GYc/3lXhqF8+VAijBet92muEKcLrPQMY+Ny1/88g7 XaR1lMhZmIKDpvvrIk0UtNRNxO0z9QlEfVqGDH7l5acA+u1qL/f3cmFQyyAdmkfw2rm1 FhU529WxbCZ9Fao/c3oTkryGpKNggHhW+tHD/A+E8BkRKx/uYhJVlMb/zNJ1UOEyYcs6 3/qPeEAaZK3e8A3a+fVNGecVQ0xeiHUx6b1S0nyk/Eq/Sri7rmGhTeprCzUvjwgEHO/v I7x67gmrAfLu6XecI+qdBWh4ypIiAnh7/mvKObh6qRvUQh7NRFJdeLePyM2WFjA6iFKY YfsA== 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=r5VgKQ8Ajyu7ZWBJa/yIpnlKTDE34dKfFaKWj+XaeNY=; b=aLukdgrUfbrFqo1A5vMUE9MCTBTRrNd361ZR3slxsEvzUTI1c1fS8exAFPGRk+I1x7 /vTV3S7xh0JDM2TFE+5J+Ha08zpOJxxlPSPxzc7OSvfeet+MvW6ExpEPJT1v9Pq4pFzC Ki57qBAD6dHsSfGxObHfRqh57zj/2RUfjLkYflu/rBKk+o8AbTM6Tk/w3+MUq2gknnjJ 3NpAcq+Mxpn5UMHX41Hi0cr7vDQ+mkFRx4vZW04CUTWiFsVzLRot/GJoNRAQefj4hjvN /4p/0NdOw0n8jXIFQWobW9OLdbEsSo68sjetBEUZJ9pEbrliZDb7RyD03Ekvl88YKTZd 15NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NJ48rM8s; 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 n200-v6si4412546qkn.1.2018.05.11.17.56.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:56:43 -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=NJ48rM8s; 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]:59532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIq2-00050a-NI for patch@linaro.org; Fri, 11 May 2018 20:56:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdT-0004ue-EN 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 1fHIdQ-0002yl-PK 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]:42868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdQ-0002yU-Ig for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:40 -0400 Received: by mail-pf0-x241.google.com with SMTP id p14-v6so3429981pfh.9 for ; Fri, 11 May 2018 17:43:40 -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=r5VgKQ8Ajyu7ZWBJa/yIpnlKTDE34dKfFaKWj+XaeNY=; b=NJ48rM8sFZcfOmmGyhpYxbt1gUbAydMY2PMVu3rweE+kajrvXYqFJDkjoLI1LlcXaL w23IZZyOvb+XtkfL4x4bc1f6aiYmvCcZyfKH46O5tgHRP4vn56nm9e/HOzqEwxBTW//X CdqKN31iGQRmKYTlkX/j4mM0ZT8YQubXStV7c= 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=r5VgKQ8Ajyu7ZWBJa/yIpnlKTDE34dKfFaKWj+XaeNY=; b=jauwp1BNDtVDgAO8ii0TD/8t5wVPQj5ANk1vJOlDUWE2SCnlS4Z/OX2O2WfqRcmwn0 MOqoFXoh7xNyO18R+4yx2DbhkR18rcKKuigjJMIC7oY6WnsM6Lb/AqtniHORAMblYJx8 D6EJFvmkcMDZ+MJSVbcQOKVD+PgT1OyP4t+HiqGi4tVOL3pphsjhTPf24kQLWbvYGaIw BNN3FkURuA5AkbsDZAFXIguaoTQ83XgG/qqCfGvBkxGMOcEuCd5PAfFgv5Sn4ESimYsa pe82g67kxcv8NXDz6uN5f7C9JCzj2vbVDWlmixzPd15iwnOtixrxSM1sS0AI4lVgovMP bz+A== X-Gm-Message-State: ALKqPwe0qXjuBPlncHl3UnvF78s9yBtYS+MI0PdgqUUGKvey2XrxzgPV 03KFUqlmNbd4+XCCC1b9MAHT1Inul2U= X-Received: by 2002:a65:4d0b:: with SMTP id i11-v6mr995479pgt.51.1526085819312; Fri, 11 May 2018 17:43:39 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:43:02 -0700 Message-Id: <20180512004311.9299-19-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 18/27] target/m68k: Use floatX_silence_nan when we have already checked for SNaN 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- target/m68k/softfloat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Peter Maydell diff --git a/target/m68k/softfloat.c b/target/m68k/softfloat.c index e41b07d042..6ec227e20f 100644 --- a/target/m68k/softfloat.c +++ b/target/m68k/softfloat.c @@ -31,13 +31,14 @@ static floatx80 propagateFloatx80NaNOneArg(floatx80 a, float_status *status) { if (floatx80_is_signaling_nan(a, status)) { float_raise(float_flag_invalid, status); + a = floatx80_silence_nan(a, status); } if (status->default_nan_mode) { return floatx80_default_nan(status); } - return floatx80_maybe_silence_nan(a, status); + return a; } /*----------------------------------------------------------------------------