[flang] runtime: fix output B/O/Z editing of "negative" values
authorpeter klausler <pklausler@nvidia.com>
Mon, 11 Oct 2021 22:41:14 +0000 (15:41 -0700)
committerpeter klausler <pklausler@nvidia.com>
Tue, 12 Oct 2021 23:02:07 +0000 (16:02 -0700)
commitf65f830e5f935ab61ddb1f9af98ce3e5755eb2b2
treea069c470df9786c35d4004d608f8734ae736eb0c
parent6ee2aa126cf6bccb6a4af955a663ff3512aecc63
[flang] runtime: fix output B/O/Z editing of "negative" values

B/O/Z integer output editing must not reflect any sign extension
of scalar output values.  Add more size-dependent OutputInteger
I/O APIs and kind instantiations of EditIntegerOutput.

Differential Revision: https://reviews.llvm.org/D111678
flang/include/flang/Common/uint128.h
flang/include/flang/Runtime/io-api.h
flang/runtime/descriptor-io.h
flang/runtime/edit-output.cpp
flang/runtime/edit-output.h
flang/runtime/io-api.cpp
flang/unittests/Runtime/NumericalFormatTest.cpp