[all-commits] [llvm/llvm-project] 92afe8: [flang] Fold SPACING() correctly when result is su...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 18 14:25:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92afe8021352ef33a282046d404a1f14140f96f9
      https://github.com/llvm/llvm-project/commit/92afe8021352ef33a282046d404a1f14140f96f9
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

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

  Log Message:
  -----------
  [flang] Fold SPACING() correctly when result is subnormal

The intrinsic function SPACING() was being folded to the smallest
normal number (TINY(x)) rather than to a smaller subnormal result
when that result really was subnormal.

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




More information about the All-commits mailing list