[all-commits] [llvm/llvm-project] b2cf57: [flang] Respect BZ mode in exponent parts, too

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Sep 14 17:03:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b2cf572b562048f54b774d9cef88cf792a33ab31
      https://github.com/llvm/llvm-project/commit/b2cf572b562048f54b774d9cef88cf792a33ab31
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M flang/runtime/edit-input.cpp
    M flang/unittests/Runtime/hello.cpp

  Log Message:
  -----------
  [flang] Respect BZ mode in exponent parts, too

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.

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




More information about the All-commits mailing list