[all-commits] [llvm/llvm-project] 14a1b8: Make IEEEFloat::roundToIntegral more standard conf...

Serge Pavlov via All-commits all-commits at lists.llvm.org
Tue Mar 10 21:51:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 14a1b80e044aac1947c891525cf30521be0a79b7
      https://github.com/llvm/llvm-project/commit/14a1b80e044aac1947c891525cf30521be0a79b7
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2020-03-11 (Wed, 11 Mar 2020)

  Changed paths:
    M llvm/lib/Support/APFloat.cpp
    M llvm/unittests/ADT/APFloatTest.cpp

  Log Message:
  -----------
  Make IEEEFloat::roundToIntegral more standard conformant

Behavior of IEEEFloat::roundToIntegral is aligned with IEEE-754
operation roundToIntegralExact. In partucular this function now:
- returns opInvalid for signaling NaNs,
- returns opInexact if the result of rounding differs from argument.

Differential Revision: https://reviews.llvm.org/D75246




More information about the All-commits mailing list