[llvm-bugs] [Bug 44051] New: APFloat::fusedMultiplyAdd incorrect when using a single instance for all arguments

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 18 23:59:11 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=44051

            Bug ID: 44051
           Summary: APFloat::fusedMultiplyAdd incorrect when using a
                    single instance for all arguments
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: ehudkatz at gmail.com
                CC: llvm-bugs at lists.llvm.org

The following simple test should result with `x` equals to 3.75, while the
result we actually get is 4.5.

APFloat x(1.5);
x.fusedMultiplyAdd(x, x, APFloat::rmNearestTiesToEven);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191119/a527af66/attachment.html>


More information about the llvm-bugs mailing list