From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOclG-00053A-2P for qemu-devel@nongnu.org; Mon, 23 May 2011 17:34:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOclE-0001nG-W2 for qemu-devel@nongnu.org; Mon, 23 May 2011 17:34:02 -0400 Received: from hall.aurel32.net ([88.191.126.93]:44422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOclE-0001n6-Ne for qemu-devel@nongnu.org; Mon, 23 May 2011 17:34:00 -0400 Date: Mon, 23 May 2011 23:33:58 +0200 From: Aurelien Jarno Message-ID: <20110523213358.GE5112@hall.aurel32.net> References: <1305812779-23175-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: <1305812779-23175-1-git-send-email-peter.maydell@linaro.org> Sender: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH v2 0/6] target-arm: Fix bugs in fp exception flag setting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paul Brook , qemu-devel@nongnu.org, patches@linaro.org On Thu, May 19, 2011 at 02:46:13PM +0100, Peter Maydell wrote: > This patch series fixes a number of minor bugs in the ARM target where > we were not correctly setting the cumulative exception flags in the > FPSCR. It includes adding a new flag to softfloat indicating when a > denormal result has been flushed to zero (as discussed previously on > the list.) > > Tested with the usual random instruction sequence testing (covering > all the neon and vfp data processing instructions which can set FPSCR > exception flags). These patches fix all the FPSCR flags bugs I found, > with the exception of those in the VCVT float-int and float32-float16 > conversion routines, which are a bit trickier to fix because they are > bugs in softfloat rather than merely in the arm helper functions. > > v1->v2 changes: > patches 1,2,3,4,5 are unchanged (v2 patches 4,5 are v1's 6 and 7) > v2 patch 6 replaces the v1 patches 4,5, and makes the int-float > conversion helpers take just a pointer to the correct fp_status > rather than an entire CPUState pointer, as suggested by Paul Brook. > > > Peter Maydell (6): > target-arm: Don't set FP exceptions in recip, recip_sqrt estimate fns > target-arm: Signal InputDenormal for VRECPE, VRSQRTE, VRECPS, VRSQRTS > target-arm: Signal InvalidOp for Neon GE and GT compares of QNaN > softfloat: Add new flag for when denormal result is flushed to zero > target-arm: Signal Underflow when denormal flushed to zero on output > target-arm: Use correct float status for Neon int-float conversions > > fpu/softfloat.c | 41 ++++++++++-- > fpu/softfloat.h | 3 +- > target-arm/helper.c | 158 +++++++++++++++++---------------------------- > target-arm/helper.h | 60 +++++++++--------- > target-arm/neon_helper.c | 40 +++++------- > target-arm/translate.c | 148 +++++++++++++++++++++++-------------------- > 6 files changed, 223 insertions(+), 227 deletions(-) > Thanks, all applied. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net