[all-commits] [llvm/llvm-project] f45723: [flang][runtime] Fix RU/RD results when rounding t...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Dec 26 15:57:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f45723cded56b1e66b572fba0b71d117db6caa2e
      https://github.com/llvm/llvm-project/commit/f45723cded56b1e66b572fba0b71d117db6caa2e
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-12-26 (Tue, 26 Dec 2023)

  Changed paths:
    M flang/lib/Decimal/decimal-to-binary.cpp
    M flang/unittests/Runtime/NumericalFormatTest.cpp

  Log Message:
  -----------
  [flang][runtime] Fix RU/RD results when rounding to least nonzero (#75878)

When rounding what otherwise would have been a result that underflowed
to zero up (RU) or down (RD) to the least magnitude nonzero subnormal
number, ensure that the original exponent value doesn't perturb the
result.




More information about the All-commits mailing list