Skip to content

Flang: not yet implemented: intrinsic: REAL(KIND=2) in SPACING (used in e.g. HDF5) #83894

Open
@keidavis

Description

@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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions