From patchwork Tue May 15 22:25:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135956 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp91072lji; Tue, 15 May 2018 15:45:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpd2jnPrst4h8FSGIM1OvRo+fMK3Xdgda2VBEtq5NXw3ZZTiY2zuV6xwdK1i25o5JyMcoL3 X-Received: by 2002:a37:c5c9:: with SMTP id k70-v6mr14717223qkl.390.1526424343240; Tue, 15 May 2018 15:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526424343; cv=none; d=google.com; s=arc-20160816; b=oDF6kBzRBSwdEVCHqbENeyUF0zyXc+D9yCrie2EKRfWsigM44HOjn1EXYzykDnrb1x pWUHgfLZKnFXPLX8S35zXEoj1v/FVop5LRP9qyvUF3PCrAeUKlnht05QzcvXEmCKEDl6 KFJ0l+FTiyOSX1G2eujxRpthOO1OKUq/TUndIGJ6OQzkfQ3EpnqUuoR2Yw8YapGfG7xy YW1Kh0c8F8gQ8zX+6NWceBqyZ0JL5VnxO0kLo1/mxcGvclfJkor/M18TE7qGbbp1B+7v twTm+sKrBVUqw8NH6KEbKQk1xa+/ja2Qaembt+wD3+rZqsMV9Kp0sttKGXPQmoKWwykp PCwg== 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=m8T+6uu+bCk/icIn+ENcHgbuiEZ6dkoiDQJL/yLcdsWfY+DzZ+Jbna7AyhBOqVE9ts sMo4Zb5KYjCW2+xXnldCi9jLzarLiBBhcKElM6ImdnELkyRBS+/Oy9OIy/obqxGshaE3 0BXIq1uFv+mPfYkBQuww2xDF7E+12QaqbdDkgyNmVrBJCz0e5zgJxygj3VD3lrR0iIu/ Q0tUIXiaicU5XlC2788Rk3PxUdf5022sYhYy6i959r7n1EvOAhFgmenPB4r0Nj761mlX URabWlfQPwqzSoLcN95mjQDiIcBrGRhlXBZZYXHfjrqeH1GLBirAIKOx9zwkeOUZd73U 4JmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DuguPOGs; 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 j132-v6si1196322qka.222.2018.05.15.15.45.43 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 May 2018 15:45: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=DuguPOGs; 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]:36405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIihS-0000gK-Ms for patch@linaro.org; Tue, 15 May 2018 18:45:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiOY-0003Zg-6p for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIiOW-0006NB-1y for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:10 -0400 Received: from mail-pl0-x233.google.com ([2607:f8b0:400e:c01::233]:43770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIiOV-0006Fg-Qn for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:07 -0400 Received: by mail-pl0-x233.google.com with SMTP id c41-v6so858688plj.10 for ; Tue, 15 May 2018 15:26:07 -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=DuguPOGswdB9I+iaUQaFCtoG4zmMo+eoDc99lykdLjPP0EI68SXigN3ERT2Gc1nUcz FuGijAmKurThyz44mpWXdk/Da+vC94MHSbH/Ab+Ul8rY+gtkiatsAymtjwOF/rnEr1Fl Zug/UnwqJUox6UUhOF0bcqh1H9rn19DGrqf84= 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=RbMhtpbfGNj+nibZzYvA5Lx1C6Fic3e76bhHCS7gXExrXnlO2F+WI0iHTRjCwQwoQt sRRRNOkxiClg+Bs0Qu+kW/1W7EDqxgMYBy9BgRTQ4xc7E+G4BG4xMV5rNRiGllbq/xAl ehrFW7JI3VLDNkTpxZ3T3Mc4/YtMA4A1AukNY6jDTDe82gQsaM8bnIiz0SR+eyTLYuFw clTV0g98mIXS9K+ATmH/yV8nw9X7uycPUwW6lSrH3cs9ASqA7DNeXIJ2iU4fprZkPVco PZE3hmNITG5rK40kNt3n/SApJu02vj//Jm0W9nRiWkfZzB0c1FtjP9BmlEyGpG8N0aQl VOFw== X-Gm-Message-State: ALKqPwcre7rqSl0UFswMtPUwZhOy3HD+OZiVWlw7Er0/bNt+nSQi4zjn F5nVy09SVMEPwg3TZDL+tZttxYi+6vE= X-Received: by 2002:a17:902:7046:: with SMTP id h6-v6mr16407627plt.249.1526423166570; Tue, 15 May 2018 15:26:06 -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 g11-v6sm941419pgq.62.2018.05.15.15.26.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 15:26:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 May 2018 15:25:28 -0700 Message-Id: <20180515222540.9988-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180515222540.9988-1-richard.henderson@linaro.org> References: <20180515222540.9988-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::233 Subject: [Qemu-devel] [PATCH v6 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 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; } /*----------------------------------------------------------------------------