[all-commits] [llvm/llvm-project] 0e05ab: [flang] Fix interpretations of x87 80-bit Inf/NaN

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed May 31 09:22:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e05ab6745e7c2c24ec163d1cdf6309b21621d70
      https://github.com/llvm/llvm-project/commit/0e05ab6745e7c2c24ec163d1cdf6309b21621d70
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

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

  Log Message:
  -----------
  [flang] Fix interpretations of x87 80-bit Inf/NaN

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.

Differential Revision: https://reviews.llvm.org/D151739




More information about the All-commits mailing list