Behavior of IEEEFloat::roundToIntegral is aligned with IEEE-754
operation roundToIntegralExact. In partucular this function now:
- produces opInvalid for signaling NaNs,
- returns opInexact if the result of rounding differs from argument.
Paths
| Differential D75246
Make IEEEFloat::roundToIntegral more standard conformant ClosedPublic Authored by sepavloff on Feb 27 2020, 5:27 AM.
Details Summary Behavior of IEEEFloat::roundToIntegral is aligned with IEEE-754
Diff Detail
Event Timelinesepavloff added a child revision: D72930: [FEnv] Constfold some unary constrained operations.Feb 27 2020, 9:45 AM This revision now requires changes to proceed.Mar 9 2020, 10:38 AM sepavloff retitled this revision from Fix reporting inexact status in IEEEFloat::roundToIntegral to Make IEEEFloat::roundToIntegral more standard conformant.Mar 10 2020, 8:24 AM This revision is now accepted and ready to land.Mar 10 2020, 8:50 AM Closed by commit rG14a1b80e044a: Make IEEEFloat::roundToIntegral more standard conformant (authored by sepavloff). · Explain WhyMar 10 2020, 10:17 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 249552 llvm/lib/Support/APFloat.cpp
llvm/unittests/ADT/APFloatTest.cpp
|
Correct as written, but can we get some brackets since we have the comment here?