This is an archive of the discontinued LLVM Phabricator instance.

[flang] Respect BZ mode in exponent parts, too
ClosedPublic

Authored by klausler on Sep 14 2020, 4:19 PM.

Details

Summary

The Fortran standard discusses BZ mode (treat blanks as zero digits)
explicitly in its effect on the editing of the digits prior to the
exponent part, but doesn't mention it in description of the
exponent part. Other compilers honor BZ mode in the exponent,
so we should do so too. So "1 e 1 " is 1.E11 in BZ mode.

Diff Detail

Event Timeline

klausler created this revision.Sep 14 2020, 4:19 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Sep 14 2020, 4:19 PM
tskeith accepted this revision.Sep 14 2020, 4:25 PM
This revision is now accepted and ready to land.Sep 14 2020, 4:25 PM
This revision was automatically updated to reflect the committed changes.