[all-commits] [llvm/llvm-project] dfcccc: [flang][runtime] Fix edge case discrepancies with ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Jun 4 09:17:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfcccc6dee90e08b9ae0f53c42c9c239fe4031a1
      https://github.com/llvm/llvm-project/commit/dfcccc6dee90e08b9ae0f53c42c9c239fe4031a1
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-04 (Sat, 04 Jun 2022)

  Changed paths:
    M flang/runtime/edit-output.cpp
    M flang/unittests/Runtime/NumericalFormatTest.cpp

  Log Message:
  -----------
  [flang][runtime] Fix edge case discrepancies with EN output editing

The "engineering" ENw.d output editing descriptor has some difficult
edge case behavior for values that might format into a bunch of 9's
or round up to a 1 for a given scale factor.  Fix the algorithm,
and add tests to protect against regressions.

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




More information about the All-commits mailing list