From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vh406-00032l-8m for qemu-devel@nongnu.org; Thu, 14 Nov 2013 15:59:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vh3zx-0003fS-PB for qemu-devel@nongnu.org; Thu, 14 Nov 2013 15:58:54 -0500 Message-ID: <5285397E.5040607@gmail.com> Date: Thu, 14 Nov 2013 14:58:38 -0600 From: Tom Musta MIME-Version: 1.0 References: <1383769916-5582-1-git-send-email-tommusta@gmail.com> <1383769916-5582-13-git-send-email-tommusta@gmail.com> <527C221A.5000609@twiddle.net> <527C2297.7040407@twiddle.net> <527C2C92.7060006@twiddle.net> <5283E5BE.1080809@gmail.com> <528407BE.6000707@twiddle.net> In-Reply-To: <528407BE.6000707@twiddle.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 12/14] VSX Stage 4: Add Scalar SP Fused Multiply-Adds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org On 11/13/2013 5:14 PM, Richard Henderson wrote: > On 11/14/2013 06:49 AM, Tom Musta wrote: >> I have also done quite a bit of random and targeted random testing using Power >> hardware to produce expected results. The targeted random tests followed your >> suggestion above: generate AxB + C where abs(exp(A) - exp(B)) = 23 and >> abs(exp(A) - exp(C)) = 46. Several million test patterns have been generated >> and played back through QEMU without any miscompares in the numerical results. > > Here's an example that produces wrong results when rounding to double first. > Replace the portable math.h calls with ppc asm as necessary. > > > r~ > Thanks, Richard. You have convinced me.