Received: from eggs.gnu.org ([209.51.188.92]:60691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1wY5-0003BK-RJ for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:11:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1wY0-0001ne-Hc for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:11:13 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:60126 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1wXx-0001fh-MA for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:11:06 -0500 From: Mateja Marjanovic Date: Thu, 7 Mar 2019 18:10:50 +0100 Message-Id: <1551978650-23207-2-git-send-email-mateja.marjanovic@rt-rk.com> In-Reply-To: <1551978650-23207-1-git-send-email-mateja.marjanovic@rt-rk.com> References: <1551978650-23207-1-git-send-email-mateja.marjanovic@rt-rk.com> Subject: [Qemu-devel] [PATCH] target/mips: Fix minor bug in FPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, amarkovic@wavecomp.com, arikalo@wavecomp.com, peter.maydell@linaro.org, alex.bennee@linaro.org From: Mateja Marjanovic Wrong type of NaN was generated by maddf and msubf insturctions when the arguments were inf, zero, nan or zero, inf, nan respectively. Signed-off-by: Mateja Marjanovic --- fpu/softfloat-specialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 16c0bcb..647bfbc 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -500,7 +500,7 @@ static int pickNaNMulAdd(FloatClass a_cls, FloatClass b_cls, FloatClass c_cls, */ if (infzero) { float_raise(float_flag_invalid, status); - return 3; + return 2; } if (snan_bit_is_one(status)) { -- 2.7.4