[all-commits] [llvm/llvm-project] d71297: [flang] Fix SPACING() of very small values

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed May 24 08:05:00 PDT 2023


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

  Changed paths:
    M flang/lib/Evaluate/real.cpp
    M flang/runtime/numeric.cpp
    M flang/test/Evaluate/fold-spacing.f90

  Log Message:
  -----------
  [flang] Fix SPACING() of very small values

SPACING() must return TINY() for zero arguments (which we do)
and also for subnormal values smaller than TINY() in absolute value,
which we get wrong.  Fix folding and the runtime.

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




More information about the All-commits mailing list