From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: Christophe Lyon <christophe.lyon@st.com>, patches@linaro.org
Subject: [Qemu-devel] [PATCH v3 0/6] target-arm: Fix floating point conversions
Date: Thu, 10 Feb 2011 11:28:55 +0000 [thread overview]
Message-ID: <1297337341-10815-1-git-send-email-peter.maydell@linaro.org> (raw)
This patchset fixes two issues:
* default_nan_mode not being honoured for float-to-float conversions
* half precision conversions being broken in a number of ways as
well as not handling default_nan_mode.
With this patchset qemu passes random-instruction-selection tests
for VCVT.F32.F16, VCVT.F16.F32, VCVTB and VCVTT, in both IEEE and
non-IEEE modes, with and without default-NaN behaviour.
Christophe: this patchset includes your softfloat v3 patch, although
I have split it up a little to keep the float16 bits separate.
Changes since v2:
* added STRUCT_TYPES version of float16 and fixed various
places which needed a make_float16()/float16_val() in order
to compile with STRUCT_TYPES enabled
* s/bits16/float16/ in patch 3 as suggested by Aurelien
* fixed the types in the f16-related ARM helper wrappers in patch 6
Patch 2 is unchanged and so I've added Aurelien's reviewed-by
signoff; the others all changed, although mostly in minor ways.
(Compiling with STRUCT_TYPES enabled also needs some fixes to
existing float32/float64 code; I'll send a separate patchset
for that.)
Christophe Lyon (1):
softfloat: Honour default_nan_mode for float-to-float conversions
Peter Maydell (5):
softfloat: Add float16 type and float16 NaN handling functions
softfloat: Fix single-to-half precision float conversions
softfloat: Correctly handle NaNs in float16_to_float32()
target-arm: Silence NaNs resulting from half-precision conversions
target-arm: Use standard FPSCR for Neon half-precision operations
fpu/softfloat-specialize.h | 130 ++++++++++++++++++++++++++++++++++++++++++--
fpu/softfloat.c | 100 ++++++++++++++++++++++------------
fpu/softfloat.h | 19 ++++++-
target-arm/helper.c | 38 +++++++++++--
target-arm/helpers.h | 2 +
target-arm/translate.c | 16 +++---
6 files changed, 251 insertions(+), 54 deletions(-)
next reply other threads:[~2011-02-10 11:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 11:28 Peter Maydell [this message]
2011-02-10 11:28 ` [Qemu-devel] [PATCH v3 1/6] softfloat: Add float16 type and float16 NaN handling functions Peter Maydell
2011-02-10 11:28 ` [Qemu-devel] [PATCH v3 2/6] softfloat: Honour default_nan_mode for float-to-float conversions Peter Maydell
2011-02-10 11:28 ` [Qemu-devel] [PATCH v3 3/6] softfloat: Fix single-to-half precision float conversions Peter Maydell
2011-02-10 11:28 ` [Qemu-devel] [PATCH v3 4/6] softfloat: Correctly handle NaNs in float16_to_float32() Peter Maydell
2011-02-10 11:29 ` [Qemu-devel] [PATCH v3 5/6] target-arm: Silence NaNs resulting from half-precision conversions Peter Maydell
2011-02-10 11:29 ` [Qemu-devel] [PATCH v3 6/6] target-arm: Use standard FPSCR for Neon half-precision operations Peter Maydell
2011-02-10 18:47 ` [Qemu-devel] [PATCH v3 0/6] target-arm: Fix floating point conversions Aurelien Jarno
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=1297337341-10815-1-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=christophe.lyon@st.com \
--cc=patches@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).