From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9760 invoked by alias); 27 Sep 2012 20:45:46 -0000 Received: (qmail 9706 invoked by uid 48); 27 Sep 2012 20:45:29 -0000 From: "law at redhat dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug math/14638] New: fma produced wrong results for (0 * -1.0) + -0.0 Date: Thu, 27 Sep 2012 20:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: law at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00263.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14638 Bug #: 14638 Summary: fma produced wrong results for (0 * -1.0) + -0.0 Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: math AssignedTo: unassigned@sourceware.org ReportedBy: law@redhat.com Classification: Unclassified The FMA implementation in sysdeps/ieee754/dbl-64/s_fma.c produces the wrong result for this program when run on a x86_64 box that doesn't have fma3/fma4 support. #include #include #include int main (void) { double f1 = 0.0f; double f2 = -1.0f; double f3 = -0.0f; double dresult = fma (f1, f2, f3); if (! signbit (dresult)) abort (); exit (0); } -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.