From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy0ER-0003D2-U2 for qemu-devel@nongnu.org; Tue, 31 Dec 2013 09:23:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vy0EL-0004k8-22 for qemu-devel@nongnu.org; Tue, 31 Dec 2013 09:23:43 -0500 Received: from mail-pb0-x232.google.com ([2607:f8b0:400e:c01::232]:37407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vy0EK-0004ja-RN for qemu-devel@nongnu.org; Tue, 31 Dec 2013 09:23:36 -0500 Received: by mail-pb0-f50.google.com with SMTP id rr13so12746826pbb.9 for ; Tue, 31 Dec 2013 06:23:36 -0800 (PST) Sender: Richard Henderson Message-ID: <52C2D364.4070903@twiddle.net> Date: Tue, 31 Dec 2013 06:23:32 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1388496958-3542-1-git-send-email-peter.maydell@linaro.org> <1388496958-3542-9-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1388496958-3542-9-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 08/22] softfloat: Fix float64_to_uint64_round_to_zero 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: > From: Tom Musta > > The float64_to_uint64_round_to_zero routine is incorrect. > > For example, the following test pattern: > > 46697351FF4AEC29 / 0x1.97351ff4aec29p+103 > > currently produces 8000000000000000 instead of FFFFFFFFFFFFFFFF. > > This patch re-implements the routine to temporarily force the > rounding mode and use the float64_to_uint64 routine. > > This contribution can be licensed under either the softfloat-2a or -2b > license. > > Signed-off-by: Tom Musta > Message-id: 1387397961-4894-4-git-send-email-tommusta@gmail.com > Signed-off-by: Peter Maydell > --- > fpu/softfloat.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) Perhaps a duplicate with Tom's thread, but: Reviewed-by: Richard Henderson r~