[all-commits] [llvm/llvm-project] 90617e: [flang] Fix folding edge cases with IEEE_NEXT_{UP/...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Aug 2 12:06:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90617e99bb17303b351351681a70394c312e0e58
      https://github.com/llvm/llvm-project/commit/90617e99bb17303b351351681a70394c312e0e58
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

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

  Log Message:
  -----------
  [flang] Fix folding edge cases with IEEE_NEXT_{UP/DOWN/AFTER} & NEAREST (#101424)

The generation of 80-bit x87 floating-point infinities was incorrect in
Normalize(), the comparison for IEEE_NEXT_AFTER needs to use the most
precise type of its arguments, and we don't need to warn about overflows
from +/-HUGE() to infinity. Warnings about NaN arguments remain in
place, and enabled by default, as their usage may or may not be
portable, and their appearance in a real code seems most likely to
signify an earlier error.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list