[all-commits] [llvm/llvm-project] 2665fb: [flang] NINT(-.4999) is 0, not overflow

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 16 10:48:11 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2665fbe71e1d1897da3abad6c6cc3c32020e0bff
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

  Changed paths:
    M flang/include/flang/Evaluate/real.h

  Log Message:
  [flang] NINT(-.4999) is 0, not overflow

Overflow detection in the folding of int/nint/ceiling is
incorrectly signalling overflow when a negative argument yields
a zero result.

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

More information about the All-commits mailing list