From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f70Yu-0001yJ-SH for qemu-devel@nongnu.org; Fri, 13 Apr 2018 11:24:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f70Yr-0001t5-M1 for qemu-devel@nongnu.org; Fri, 13 Apr 2018 11:24:28 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:60456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f70Yr-0001sr-7P for qemu-devel@nongnu.org; Fri, 13 Apr 2018 11:24:25 -0400 References: <20180413140334.26622-1-alex.bennee@linaro.org> <20180413140334.26622-3-alex.bennee@linaro.org> <3a3a9132-8f03-c476-bd0d-b6c91a9cc3a4@mail.uni-paderborn.de> From: Bastian Koppelmann Message-ID: <0703fdde-da82-d85f-3d68-e45e0839a9dc@mail.uni-paderborn.de> Date: Fri, 13 Apr 2018 17:24:21 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 2/2] fpu/softfloat: raise float_invalid for NaN/Inf in round_to_int_and_pack List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , QEMU Developers , Aurelien Jarno On 04/13/2018 04:07 PM, Peter Maydell wrote: > On 13 April 2018 at 15:06, Bastian Koppelmann > wrote: >> On 04/13/2018 04:03 PM, Alex Bennée wrote: >>> The re-factor broke the raising of INVALID when NaN/Inf is passed to >>> the float_to_int conversion functions. round_to_uint_and_pack got this >>> right for NaN but also missed out the Inf handling. >>> >>> Fixes https://bugs.launchpad.net/qemu/+bug/1759264 >>> >>> Signed-off-by: Alex Bennée >>> Cc: Bastian Koppelmann >>> --- >>> fpu/softfloat.c | 3 +++ >>> 1 file changed, 3 insertions(+) >>> >> >> Reviewed-by: Bastian Koppelmann > > Could you run your tricore test case with this patch? I think > Alex was having difficulty getting that running... This fixes the ftoi problem, so Tested-by: Bastian Koppelmann However, my risu-like tests found another flag raising problem with float32_div. I'll investigate it on Monday. Cheers, Bastian