[all-commits] [llvm/llvm-project] 82e1e4: [flang][runtime] Treatment of NaN in MAXVAL/MAXLOC...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Jan 15 10:29:38 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 82e1e412e3249e15908c3f916eeaa04b96d4b453
https://github.com/llvm/llvm-project/commit/82e1e412e3249e15908c3f916eeaa04b96d4b453
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2024-01-15 (Mon, 15 Jan 2024)
Changed paths:
M flang/docs/Extensions.md
M flang/lib/Evaluate/fold-character.cpp
M flang/lib/Evaluate/fold-integer.cpp
M flang/lib/Evaluate/fold-logical.cpp
M flang/lib/Evaluate/fold-real.cpp
M flang/lib/Evaluate/fold-reduction.h
M flang/runtime/extrema.cpp
M flang/runtime/reduction-templates.h
M flang/test/Evaluate/fold-findloc.f90
M flang/test/Evaluate/folding20.f90
Log Message:
-----------
[flang][runtime] Treatment of NaN in MAXVAL/MAXLOC/MINVAL/MINLOC (#76999)
Detect NaN elements in data and handle them like gfortran does (at
runtime); namely, NaN can be returned if all the data are NaNs, but any
non-NaN value is preferable. Ensure that folding returns the same
results as runtime computation.
Fixes llvm-test-suite/Fortran/gfortran/regression/maxloc_2.f90 (and
probably others).
More information about the All-commits
mailing list