From: ild@inbox.ru
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Ildar Isaev <ild@inbox.ru>
Subject: [Qemu-devel] [PATCH] target-arm: fix for exponent comparison in recpe_f64
Date: Thu, 5 Feb 2015 14:27:53 +0300 [thread overview]
Message-ID: <1423135673-9025-1-git-send-email-ild@inbox.ru> (raw)
From: Ildar Isaev <ild@inbox.ru>
f64 exponent in HELPER(recpe_f64) should be compared to 2045 rather than 1023
(FPRecipEstimate in ARMV8 spec)
Signed-off-by: Ildar Isaev <ild@inbox.ru>
---
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
next reply other threads:[~2015-02-05 12:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 11:27 ild [this message]
2015-02-05 13:30 ` [Qemu-devel] [PATCH] target-arm: fix for exponent comparison in recpe_f64 Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423135673-9025-1-git-send-email-ild@inbox.ru \
--to=ild@inbox.ru \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).