From patchwork Wed May 16 15:52: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: 136021 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1110632lji; Wed, 16 May 2018 09:03:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZogy0O+/bWHA5569JP5M4ziUDcvjhozm+kPjH+HTStIZ0+QDKETuaxOb90sEuZTumVeTG+Z X-Received: by 2002:a37:9682:: with SMTP id y124-v6mr1422893qkd.359.1526486590763; Wed, 16 May 2018 09:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526486590; cv=none; d=google.com; s=arc-20160816; b=RPj5hV1BumAu31yKnIq6zKcHfhDn+zvCLMpwmH35gnVlAE1a8haiJyFH0MoA3DNhns fIqzZwAiTC7MTL/Lfk4rzP9FwGj2CZlBVd+0C4g2UdUCkZhWKsLduFRb7CFpqNdXTQz2 LJDFtFyLD34Hns6c4WN77oSG8kMgaoYoNlF6jWgrHx+RUCvssL2Gmlp6Zk/UPdq9xh5V pu8V+MIiWQe3aMeGZ7inuqdW8Gi2pdM1S5pdnvaTRCuIlxOLKPdSAdPfyLEPjf5h2Wuk k2WYwAtlYZJgepMNc8ax46o37HdziR52BWfkZosxXxFDxtTONkc7gFeq8T0+PldWRMHQ eMCQ== 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=SPBg1TyIEk4O+QgkODhyiPa2jhkA37Z3ZFJ5t7jC9gU=; b=CuJ7RGoYmoa52RhEXNKTM0q1ID/aJCh/Iuvum171eMNrianKoWJeFTPQL7GUybPbTA /LzR6S6VcXqjnk7/TA8Y//qURPCAkAmct7R2r7VijzCr/jQw3bkynN6+oHxwXqH4FoaL ws7ZpOv5+vY10Q7c5T8WiyV4NlpjSTwCCL8AsI+ucu8JIih3GNb54NYZthR5FG64SNuu NOfVqUJTbbSPPSzH3K08mmrKtwsc1ario+JTDaTVz2BnWAktuQdjiqQaugJ5ZOmPLM4q /lcjT0vJUKLekmBX46OYH+GKUiloHtrp7pt+pOXKAg2Y4DuIvLlURecazbqhdh38RPXY bynA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kKMRlWGZ; 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 l2-v6si2793261qvo.196.2018.05.16.09.03.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 May 2018 09:03:10 -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=kKMRlWGZ; 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]:53066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIytS-0002WH-5N for patch@linaro.org; Wed, 16 May 2018 12:03:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIyjn-0004Vs-7T for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIyjm-00056Q-CS for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:11 -0400 Received: from mail-pl0-x232.google.com ([2607:f8b0:400e:c01::232]:42634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIyjm-00056C-6e for qemu-devel@nongnu.org; Wed, 16 May 2018 11:53:10 -0400 Received: by mail-pl0-x232.google.com with SMTP id u6-v6so664517pls.9 for ; Wed, 16 May 2018 08:53:10 -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=SPBg1TyIEk4O+QgkODhyiPa2jhkA37Z3ZFJ5t7jC9gU=; b=kKMRlWGZ6eYi4vSWp1lP/3KGZL75+wAGFXYeB9+sGUXmP5fgpzTb1CQ+/dIG+KACZu fD4Im7IKD9ore4VhdmqwEj/Q+8/v4dNPe5jbEoh2Dk0DR7yZjrV6KdiC1oZGqtZvfDIy YMcR6E6CJLUeq6bUbit8tbg9WE6KL27SDoATU= 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=SPBg1TyIEk4O+QgkODhyiPa2jhkA37Z3ZFJ5t7jC9gU=; b=G2B6vPj3Z88UW+MB6LTAj9E/egwrFGtKLlwS6ugsjq427zFcBCLCIYU4Gth1UAJhfJ lirR6P9wAM5xoBKRIE4c0BcWGqkok9oxpnuRIMKEe1kY6U9Ofyk5Yg7oVWeEOWgD5oTo EZS0wzhNIs2+sMUFbVnKHkgDVbC/58dATkajGHrbKcOJy7XSum2KCprnqBwQ/1N2FPAo 5W/Rk/heAAzlG38CqZ+N8NKCtasJB9CwTZoort2Sl+zXrTl24+2HXYwaEJW2EkYpXt2P ElgFFjOeP/56L0cNtL97kOYxGiZB1FjpNqQcmRRUxGFtQg/TtsQVqyuvRDAXYTqYzLCK yizw== X-Gm-Message-State: ALKqPwda803/Jis8NdtCTeC4eExDHz5gayLcguQRuxNM8ISaTcQKgAxZ s4OpN5MZYdscYf5HoQa28h4u1WCWTTU= X-Received: by 2002:a17:902:274a:: with SMTP id j10-v6mr1469044plg.393.1526485988836; Wed, 16 May 2018 08:53:08 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 08:53:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 08:52:31 -0700 Message-Id: <20180516155243.16937-17-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::232 Subject: [Qemu-devel] [PULL 16/28] 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- target/m68k/softfloat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/target/m68k/softfloat.c b/target/m68k/softfloat.c index d093997219..b45a5e8690 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; } /*----------------------------------------------------------------------------