This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Fix edge case discrepancies with EN output editing
ClosedPublic

Authored by klausler on Jun 3 2022, 4:06 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Jun 3 2022, 4:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2022, 4:06 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 3 2022, 4:06 PM
vdonaldson accepted this revision.Jun 3 2022, 5:17 PM
This revision is now accepted and ready to land.Jun 3 2022, 5:17 PM