From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy14p-000123-JN for qemu-devel@nongnu.org; Tue, 31 Dec 2013 10:17:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vy14k-0002aO-Nh for qemu-devel@nongnu.org; Tue, 31 Dec 2013 10:17:51 -0500 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]:55570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy14k-0002aF-G7 for qemu-devel@nongnu.org; Tue, 31 Dec 2013 10:17:46 -0500 Received: by mail-pb0-f47.google.com with SMTP id um1so12595632pbc.6 for ; Tue, 31 Dec 2013 07:17:45 -0800 (PST) Sender: Richard Henderson Message-ID: <52C2E015.9020902@twiddle.net> Date: Tue, 31 Dec 2013 07:17:41 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1388496958-3542-1-git-send-email-peter.maydell@linaro.org> <1388496958-3542-18-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1388496958-3542-18-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 17/22] target-arm: Ignore most exceptions from scalbn when doing fixpoint conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Tom Musta , Peter Crosthwaite , patches@linaro.org, Aurelien Jarno , Michael Matz , Alexander Graf , Claudio Fontana , Dirk Mueller , Will Newton , Laurent Desnogues , =?ISO-8859-1?Q?Alex_Benn=E9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall On 12/31/2013 05:35 AM, Peter Maydell wrote: > The VFP fixed point conversion helpers first call float_scalbn and > then convert the result to an integer. This scalbn operation may > set floating point exception flags for: > * overflow & inexact (if it overflows to infinity) > * input denormal squashed to zero > * output denormal squashed to zero > Of these, we only care about the input-denormal flag, since > the output of the whole scale-and-convert operation will be > an integer (so squashed-output-denormal and overflow don't > apply). Suppress the others by saving the pre-scalb exception > flags and only copying across a potential input-denormal flag. > > Signed-off-by: Peter Maydell > --- > target-arm/helper.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Reviewed-by: Richard Henderson r~