Received: from eggs.gnu.org ([2001:4830:134:3::10]:47633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJLBv-0005yZ-Fr for qemu-devel@nongnu.org; Thu, 05 Feb 2015 07:05:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJLBq-0005nl-Ot for qemu-devel@nongnu.org; Thu, 05 Feb 2015 07:05:51 -0500 Received: from [213.243.91.10] (port=13374 helo=mlogin6.smware.local) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJLBq-0005nU-7D for qemu-devel@nongnu.org; Thu, 05 Feb 2015 07:05:46 -0500 From: ild@inbox.ru Date: Thu, 5 Feb 2015 14:27:53 +0300 Message-Id: <1423135673-9025-1-git-send-email-ild@inbox.ru> Subject: [Qemu-devel] [PATCH] target-arm: fix for exponent comparison in recpe_f64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Ildar Isaev From: Ildar Isaev f64 exponent in HELPER(recpe_f64) should be compared to 2045 rather than 1023 (FPRecipEstimate in ARMV8 spec) Signed-off-by: Ildar Isaev --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index 1a5e067..f2feec4 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -6242,7 +6242,7 @@ float64 HELPER(recpe_f64)(float64 input, void *fpstp) } else { return float64_set_sign(float64_maxnorm, float64_is_neg(f64)); } - } else if (f64_exp >= 1023 && fpst->flush_to_zero) { + } else if (f64_exp >= 2045 && fpst->flush_to_zero) { float_raise(float_flag_underflow, fpst); return float64_set_sign(float64_zero, float64_is_neg(f64)); } -- 1.9.3