[all-commits] [llvm/llvm-project] 567462: [flang] Correct kP scaling on F output

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Oct 5 13:59:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 567462b48eba1c2d286ce97117994463f4535d2e
      https://github.com/llvm/llvm-project/commit/567462b48eba1c2d286ce97117994463f4535d2e
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

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

  Log Message:
  -----------
  [flang] Correct kP scaling on F output

The sign of the scaling factor was misinterpreted for output
as meaning what it does for input.  To be correct, they
should cancel each other out.

print '(1P,F4.3)', 1. ! printed 0.1 but should print 10.0

Differential revision: https://reviews.llvm.org/D88610




More information about the All-commits mailing list