[all-commits] [llvm/llvm-project] cab156: [flang][runtime] Don't round hexadecimal floating-...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Jan 2 09:33:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cab156c4129e5948a6322054480e66d3ca17b919
      https://github.com/llvm/llvm-project/commit/cab156c4129e5948a6322054480e66d3ca17b919
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-01-02 (Tue, 02 Jan 2024)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/runtime/edit-input.cpp

  Log Message:
  -----------
  [flang][runtime] Don't round hexadecimal floating-point input (#76586)

Fortran 2023 subclause 13.7.2.3.8 discusses input rounding only in the
context of decimal-to-binary conversion. There is no mention of rounding
for hexadecimal floating-point input conversion. At least one Fortran
compiler seems to have interpreted this silence as implying no rounding.
(Note that this is not the same thing as rounding to zero (RZ), which
would return +/-HUGE() for overflow.)




More information about the All-commits mailing list