Open keidavis opened 6 months ago
@keidavis This might solve your issue? https://github.com/llvm/llvm-project/pull/106575
@llvm/issue-subscribers-flang-ir
Author: Kei Davis (keidavis)
@llvm/issue-subscribers-flang-runtime
Author: Kei Davis (keidavis)
llvm-project/flang/include/flang/Optimizer/Support/Utils.h:131: not yet implemented: intrinsic: REAL(KIND=2) in SPACING
It seems it's not REAL(KIND=2), but the implementation for that type in the SPACING intrinsic. Looking at flang/lib/Optimizer/Builder/Runtime/Numeric.cpp, it appears that SPACING, and several other intrinsics, are implemented for larger float types.
Compiling kind_find ( https://github.com/srinathv/Coding-Examples/blob/master/codingTests/fortran90/kindfind.f90) with flang suggests that REAL(KIND=2) is at least nominally implemented.
Flang gives a sensible error message, but hoping to get this on someone's radar as much software depends on HDF5.
Thanks!