Received: from [140.186.70.92] (port=54449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnbY4-0001nK-6W for qemu-devel@nongnu.org; Thu, 10 Feb 2011 13:47:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnbY1-0006qC-Rv for qemu-devel@nongnu.org; Thu, 10 Feb 2011 13:47:23 -0500 Received: from hall.aurel32.net ([88.191.126.93]:37879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnbY1-0006q7-LX for qemu-devel@nongnu.org; Thu, 10 Feb 2011 13:47:21 -0500 Date: Thu, 10 Feb 2011 19:47:28 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH v3 0/6] target-arm: Fix floating point conversions Message-ID: <20110210184728.GB598@volta.aurel32.net> References: <1297337341-10815-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1297337341-10815-1-git-send-email-peter.maydell@linaro.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Christophe Lyon , qemu-devel@nongnu.org, patches@linaro.org On Thu, Feb 10, 2011 at 11:28:55AM +0000, Peter Maydell wrote: > 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(-) > Thanks, all applied. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net