[all-commits] [llvm/llvm-project] 134603: [flang][runtime] Return +/-HUGE() for some real in...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Dec 26 15:49:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1346037fffae8f173c6915689349abff0118f952
      https://github.com/llvm/llvm-project/commit/1346037fffae8f173c6915689349abff0118f952
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-12-26 (Tue, 26 Dec 2023)

  Changed paths:
    M flang/lib/Decimal/big-radix-floating-point.h
    M flang/lib/Decimal/decimal-to-binary.cpp
    M flang/runtime/edit-input.cpp
    M flang/unittests/Runtime/NumericalFormatTest.cpp

  Log Message:
  -----------
  [flang][runtime] Return +/-HUGE() for some real input roundings (#75525)

The Fortran standard says that overflow input cases in some rounding
modes (RZ, RD, RU) should round to a "representable" number. Some
Fortran compilers interpret this to mean +/-HUGE(), some as +/-Inf.
Follow the precedent of gfortran and the Intel compilers.




More information about the All-commits mailing list