[flang][runtime] Improve G0 output editing
authorPeter Klausler <pklausler@nvidia.com>
Wed, 22 Jun 2022 20:27:59 +0000 (13:27 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Thu, 23 Jun 2022 18:27:25 +0000 (11:27 -0700)
commitdf6afee9859f982fa927dc90398e82d689f19db6
tree5950cdf6146e827f92eb3b9499a81447241f6d69
parent5ca68d5845c04421eef9659119ba2c12d2a56803
[flang][runtime] Improve G0 output editing

G0 output editing should never overflow an output field and fill it
with asterisks.  It should also never elide the "E" in an exponent
field, even if it has more than three digits.

Differential Revision: https://reviews.llvm.org/D128396
flang/runtime/edit-output.cpp
flang/unittests/Runtime/NumericalFormatTest.cpp