[flang-commits] [PATCH] D147071: [flang] Fine-tune NAN formatted input editing

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Mar 28 11:35:31 PDT 2023


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Per Fortran 2018, "NAN" and "NAN()" are to be translated into quiet
NaNs, and the other forms are implementation-dependent;  I've made 
them quiet NaNs too.  Also process signs on input NaNs, which seems  
wrong but other compilers all do it, and fix some misleading template
argument names noticed along the way.


https://reviews.llvm.org/D147071

Files:
  flang/lib/Decimal/big-radix-floating-point.h
  flang/lib/Decimal/decimal-to-binary.cpp
  flang/runtime/edit-output.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147071.509083.patch
Type: text/x-patch
Size: 5261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230328/3909d727/attachment-0001.bin>


More information about the flang-commits mailing list