This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13304] New: fma, fmaf, fmal produce wrong results
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 17 Oct 2011 02:01:40 +0000
- Subject: [Bug math/13304] New: fma, fmaf, fmal produce wrong results
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13304
Bug #: 13304
Summary: fma, fmaf, fmal produce wrong results
Product: glibc
Version: 2.11
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj@suse.de
ReportedBy: bruno@clisp.org
Classification: Unclassified
Created attachment 5990
--> http://sourceware.org/bugzilla/attachment.cgi?id=5990
test suite for fma()
The functions fma(), fmaf(), fmal() are defined in POSIX:2008
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/fma.html>:
"These functions shall compute (x * y) + z, rounded as one ternary operation:
they shall compute the value (as if) to infinite precision and round once
to the result format"
Find attached a test suite for fma(), easily adapted for fmaf() or fmal()
through a couple of #defines. I have checked this test suite by running it
against a slow but correct multi-precision implementation of fma().
This test suite gives
- 7 failures for fma(),
- 1 more failure for fmaf(),
- 9 more failures for fmal(),
on a glibc 2.11.3 system where
- fma() and fmaf() are implemented through a complex floating-point
instruction rich code,
- fmal() does just a x*y+z computation.
Find attached the bugs, each in a separate program, to be compiled and linked
with "-lm".
Feel free to add the test suite to glibc. I have a copyright assignment for
glibc on file, and am giving this file to the FSF.
--
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.
- Follow-Ups:
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: jakub at redhat dot com
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: jakub at redhat dot com
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: jakub at redhat dot com
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: jakub at redhat dot com
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: joseph at codesourcery dot com
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: zimmerma+gcc at loria dot fr
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: vincent-srcware at vinc17 dot net
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- [Bug math/13304] fma, fmaf, fmal produce wrong results
- From: bruno at clisp dot org