[all-commits] [llvm/llvm-project] 562fd2: [flang][runtime] Emit error message rather than cr...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sat Jun 4 11:06:24 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 562fd2c99b70691affe7776a1900e95ee7da0b3b
https://github.com/llvm/llvm-project/commit/562fd2c99b70691affe7776a1900e95ee7da0b3b
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-06-04 (Sat, 04 Jun 2022)
Changed paths:
M flang/include/flang/Runtime/numeric.h
M flang/runtime/numeric.cpp
Log Message:
-----------
[flang][runtime] Emit error message rather than crashing for MOD(ULO)(x,P=0)
Add extra arguments and checks to the runtime support library so that
a call to the intrinsic functions MOD and MODULO with "denominator"
argument P of zero will cause a crash with a source location rather
than an uninformative floating-point error or integer division by
zero signal.
Additional work is required in lowering to (1) pass source file path and
source line number arguments and (2) actually call these runtime
library APIs instead of emitting inline code for MOD &/or MODULO.
Differential Revision: https://reviews.llvm.org/D127034
More information about the All-commits
mailing list