[flang-commits] [PATCH] D151739: [flang] Fix interpretations of x87 80-bit Inf/NaN

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue May 30 11:03:41 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.

Current implementations of x87 80-bit extended precision floating
point interpret 7FFF8000000000000000 as +Inf, not a Nan.  The explicit
MSB in the significand must be set for an infinity.


https://reviews.llvm.org/D151739

Files:
  flang/include/flang/Decimal/binary-floating-point.h
  flang/include/flang/Evaluate/real.h
  flang/lib/Decimal/big-radix-floating-point.h
  flang/lib/Decimal/decimal-to-binary.cpp
  flang/test/Evaluate/folding03.f90
  flang/unittests/Evaluate/real.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151739.526719.patch
Type: text/x-patch
Size: 8044 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230530/c399f16e/attachment-0001.bin>


More information about the flang-commits mailing list