llvm-project
llvm-project copied to clipboard
APFloat::fusedMultiplyAdd incorrect when using a single instance for all arguments
| Bugzilla Link | 44051 |
| Resolution | FIXED |
| Resolved on | Jan 07, 2020 01:34 |
| Version | trunk |
| OS | All |
| CC | @hfinkel |
| Fixed by commit(s) | rG08de551f4f10 |
Extended Description
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);
Fix available in https://reviews.llvm.org/D70422
assigned to @ekatz