From patchwork Mon May 14 22:12:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135775 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp196396lji; Mon, 14 May 2018 15:26:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrAL3v0oNOub6YGtom9V+4KenHnNfoDkfP5c+XH6/67VLCAUUUZrGS/r42ytl79pC5poS5Y X-Received: by 2002:a0c:bb87:: with SMTP id i7-v6mr10892164qvg.100.1526336768649; Mon, 14 May 2018 15:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526336768; cv=none; d=google.com; s=arc-20160816; b=qWaKzBXMqhlWPc+Kb71ZHBLIhK71SFhxR0Rvd33sIatNH1dG0KZwTiP2O9Cz7syjSo jODtGr16FJLMfCGcXtcBWMuOeLQdyY4QnwcuXWhqRnAER/DxBm4xnPxmzOqtmoomMcKk 5LZSDjLM56NIISCPxn2khpKc1afRNaWuqNnJQ9aOevnPKNqryO3wTXvOkpOSg1rc3tCO LB3psk8PjuMTCG+cQpC4UtU8yGhOtPZOOqRbkBt0m9Pbc4IR9CpkdLJsY2udmcXjLHk9 elI81QG5Hz1g0iUjR+NtO5TLz/WvawRMLnXymA1jz+rUhXWIg+zA05bnlrEJIhjgwqcW mRng== 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=Ec+SMNRzcNPO1wdC4VjFMBQqFtdgGcnELN/AuHLHLvE=; b=ICFJedpEJUEUs9kj7+dJWRLJ3c+io3uZUT09AwrUIyxGYvF6XL8xZW1CbffDfnYB1e 5WogCw+YQ4MmGn6SFajiGcnOqXr8NhTG/T9yIqOZVWfcT0EDHgDFD7QYTMbBBMcDK5Ay UdkugVp/coSqISIV4SJQBpVtnoI3cs3gZxkgZItRAog+RYpJHvNoOc7w1YkvgfkIz98Y jX4llucjh94ChHbfgK7pcBNGx2GniJPN2qLlq4bNUfiPdSc7U7Y+o8WU5NevV3fCQuhw t65DIXzwxB1Vv7s/uv7FPmidiElH5hWK3KDEQCP9YSDmCAnfwu7YyG10pHXDzws+0Uwo DvTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=f0batlrH; 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 b186-v6si2399631qke.118.2018.05.14.15.26.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 May 2018 15:26:08 -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=f0batlrH; 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]:49961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILuy-0002fY-1F for patch@linaro.org; Mon, 14 May 2018 18:26:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILi1-00084f-NW for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fILi0-00080V-QH for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:45 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:34389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fILi0-0007z8-L3 for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:44 -0400 Received: by mail-pg0-x244.google.com with SMTP id k2-v6so484935pgc.1 for ; Mon, 14 May 2018 15:12:44 -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=Ec+SMNRzcNPO1wdC4VjFMBQqFtdgGcnELN/AuHLHLvE=; b=f0batlrH7F8ypHM2bjxZVAr3xMv29jFDATnedebG6Uhv1mIswvaIVZTfcLhwToS09r vPJdGVa+ztOkv4ipGFhndwUxLwiwI8A72GNgnDNnbIdva9zbILfPsQgjIIYcQ2SSxRn+ BapcLOYc8a8FHnj0ZmhGRjhkQbZfl23TpGwnE= 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=Ec+SMNRzcNPO1wdC4VjFMBQqFtdgGcnELN/AuHLHLvE=; b=EFSygQGdHdrnnKDox9twqPuuGz3fkDMfMGZfFQOkfm1iWMtlEDLroe+irGJA8EgRJu PjeqnYg0AKMLDP+/hbPG0mBrhxu+OFdfXRxF6zcxh8huzTIaLDAhuE5H8vntWratCZnB 5sXAtbA2oVQmf/+AUNINExDR0nK89PgEF4oIYkfXgoxWU1Sz6mVGmPzmYcuaZtNbetuQ Zzx1rANextzpoGjX7axSgtr/tANVvjPIFtklgJ6WkuDc4V09B8TAqcsskKKpSzGcUWPO GjQpPvIjkqdgZdCGXwoajsPNqRDMyRqRxlF0cG7/LQMpnslSGBH0Il8Fm39cLBEHySVv PrSQ== X-Gm-Message-State: ALKqPwe8icuZ8J2WJJZeAvGedauStzTzscx4LQan3YNtSGMA/NY5N3qC gvQmA7FswUPLcEY5sB8xQ7b3XWk+ku0= X-Received: by 2002:a65:61c8:: with SMTP id j8-v6mr9804784pgv.370.1526335963510; Mon, 14 May 2018 15:12:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 15:12:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 May 2018 15:12:07 -0700 Message-Id: <20180514221219.7091-17-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:c05::244 Subject: [Qemu-devel] [PATCH v5 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, alex.bennee@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 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; } /*----------------------------------------------------------------------------