From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 9C28ADDF1E for ; Tue, 8 Jan 2008 17:23:23 +1100 (EST) Message-Id: From: Kumar Gala To: Liu Yu In-Reply-To: <11996296134110-git-send-email-Yu.Liu@freescale.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: [PATCH] Fix remainder calculating bug in single floating point division Date: Tue, 8 Jan 2008 00:22:25 -0600 References: <11996296134110-git-send-email-Yu.Liu@freescale.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Jan 6, 2008, at 8:26 AM, Liu Yu wrote: > This bug exists in the emulation of floating point division for > powerpc. > > The original code cannot count the remainder correctly. > I can provide a test case to trigger this bug. > When use fdiv to count 1.1754941e-38f / 0.9999999f, > the result is expected to be 1.175494e-38f, > but we will get 1.174921e-38f in the original case. > > Comments are always welcomed! can you provide the test case that shows the error. - k