Message ID | 20180511004345.26708-12-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp251533lji; Thu, 10 May 2018 17:55:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqWOoUVNszhRGuceV33kyjDswaoiHP/q70fkD1gjbO2105lokdXytlnO54REzq1hevPfkZx X-Received: by 2002:a37:3889:: with SMTP id f131-v6mr3117302qka.12.1526000157203; Thu, 10 May 2018 17:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526000157; cv=none; d=google.com; s=arc-20160816; b=UKFVcu8dw7EUZCWTPYA5kqorLJO9oNxxdKJf/EMTKnknDGpjpKFeZzQO8LUslgR7yB G1l000jW/c/vxiWlg+tclpAqpcfPm4jh7AO2wIyja4JKcVPgB3xZU/PjOoYwSlXF/gkZ FxoJFC2QM1QuBnEWX20/jwjZRIRlw6CeqhGiSgFi/bc4/Av8xRxmNP84NPqtgQ705Eof wdPEElUgdLnqqvXYP5Bj1nE+rf4oTmnI7C1IJkAux+T6BbDp6IVi2mSUz54VJ1IgOaNx Pb7Auiw8pJr3N2SyNBZ/D1kweEN+21YSRjxOpgaed0qPg4N02T18YZDtQoJy9oYIo2u+ Ok8g== 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=MO0MpJeL1UwzyiS4i/686Xk7sWO20/M2TQYrWFKjaEs=; b=G7UIZjffYrdFK8lbQB1Rsz4odqI4Sj8XwGaTlT5h6OyjQw1E7dic9ywsbnZG1N2CcJ mXDaF0vl4+R4dYMJlIY62iN5JUW6zYmy8+LwVAAaAElpnbaKz61rNRY2slJVQBqk8E5r 4omnG2dKpwR3ofz3ERB3teKotgrFBmSbxx3FeA6xep/s4R/1t3z8o8rpatVcxvoKkdAc AjsIBgryFbnGf8i8AUXI7fyxx3SqaeUnbyOHwDdTujHy9JyQWe1DjrsEMhbzXtmOmzXw W8RJKqYA0Ne1Bu4Yf6kCaFvDraN+t83k2hQgRuoJouP21GIFHVvimCxnyjFSSyrbvH1Y eFHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Lg63w6oD; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id x5-v6si1889893qka.403.2018.05.10.17.55.57 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17:55:57 -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=Lg63w6oD; 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]:36217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1fGwLk-00040t-Kk for patch@linaro.org; Thu, 10 May 2018 20:55:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fGwAH-0007Fz-4k for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fGwAG-0004s2-9J for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:05 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:40675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <richard.henderson@linaro.org>) id 1fGwAG-0004rr-3z for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:04 -0400 Received: by mail-pg0-x244.google.com with SMTP id l2-v6so1677948pgc.7 for <qemu-devel@nongnu.org>; Thu, 10 May 2018 17:44:03 -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=MO0MpJeL1UwzyiS4i/686Xk7sWO20/M2TQYrWFKjaEs=; b=Lg63w6oDTw+dw2N87sThQJrkPuOrkWOihop4snraMepHuPReIRb59GzLBt/hFf0MyR VRYR1o7M6CQhRh9lZ0/VbsK3QiHimYjJdIywnMnuEGfvetBph6r3/0nsgGaL4LHwpmrB wMSlrLrCq7xk3064ueVLCCWa+w4wmRkP/LM8Y= 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=MO0MpJeL1UwzyiS4i/686Xk7sWO20/M2TQYrWFKjaEs=; b=dHq3WG//A3vq/bfM7Zdysn7Bl5mj3nqC8/mkCkkjONQpHvZf/+iT1SDTjpB6iljGKV thykw2AWDS7M8uZPJ6/7oveFrDjh80asuRt0VCHr3fs7ZE58+3sYWKDJEOcKv+qGXoze 5sCvsrs2xODG0KCd7WfirZmCBo9YFJLw8SN6hoS1gfySY+9VbQyvJDVkvpONz1SjmLnm FvI5T2QpG3A6oeUyiwCtIM3Opl3w1QZoeY645STyZMdlYeub9CDVulzMwqE037lPhqI+ OxE+e5Z1m/JKxYjmwRWKw8HCw58i6KWswd1/bccI4wxn3HZ7QPED5poRT4kOtZ+w6XyD aTzg== X-Gm-Message-State: ALKqPwfvrgKRqkZ7qTjgvZ2mI812tsB5oPhpBnr/iELs7nqY65mh9pPN ABh84WMKHvxSQ6JvcdoezKwF9mx+G+M= X-Received: by 2002:a65:42cd:: with SMTP id l13-v6mr2680012pgp.74.1525999442901; Thu, 10 May 2018 17:44:02 -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 y24-v6sm4216728pfn.23.2018.05.10.17.44.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:44:02 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:37 -0700 Message-Id: <20180511004345.26708-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511004345.26708-1-richard.henderson@linaro.org> References: <20180511004345.26708-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:c05::244 Subject: [Qemu-devel] [PATCH 11/19] 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, alex.bennee@linaro.org, Laurent Vivier <laurent@vivier.eu> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
softfloat: Clean up NaN handling
|
expand
|
Le 11/05/2018 à 02:43, Richard Henderson a écrit : > Cc: Laurent Vivier <laurent@vivier.eu> > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/m68k/softfloat.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Laurent Vivier <laurent@vivier.eu>
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; } /*----------------------------------------------------------------------------
Cc: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/m68k/softfloat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.0