From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-Id: <4F84D2D2-BBBB-4CD6-B970-CBCF41D08FB9@kernel.crashing.org> From: Kumar Gala To: Zang Roy-r61911 In-Reply-To: <1197448223.29372.12.camel@localhost.localdomain> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: [PATCH] Fix rounding bug in emulation for double floatoperating Date: Wed, 12 Dec 2007 07:36:04 -0600 References: <11972628522442-git-send-email-b13201@freescale.com> <20071210045616.GC29611@localhost.localdomain> <6EBEC19BF4A8F843BCD6B9155BBE2515C79D0D@zch01exm26.fsl.freescale.net> <1197343143.13519.2.camel@localhost.localdomain> <1197448223.29372.12.camel@localhost.localdomain> Cc: linuxppc-dev list , Liu Yu , David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> When I run this on a G5 (w/HW FP) I get: >> >> dmul 3fe0000000000000 * 1 = 0 expected 0 (PASS) >> dmul bfe0000000000000 * 1 = 8000000000000000 expected 0 (PASS) >> dmul 8000000000000001 * bfe0000000000000 = 0 expected 0 (PASS) >> >> ddiv 1 / 4000000000000000 = 0 expected 0 (PASS) >> >> and on the 85xx w/FP emu: >> >> dmul 3fe0000000000000 * 1 = 0 expected 0 (PASS) >> dmul bfe0000000000000 * 1 = 8000000000000000 expected 0 (PASS) >> dmul 8000000000000001 * bfe0000000000000 = 0 expected 0 (PASS) >> >> ddiv 1 / 4000000000000000 = 0 expected 0 (PASS) >> >> Maybe I'm missing where the error is. > I am missing ... > It is supposed to run based on previous IEEE 754 patch. > http://ozlabs.org/pipermail/linuxppc-dev/2007-February/031351.html Ok, but the test case should care if we are doing full "classic" emulation or fixup of e500 FP. - k