Index: flang/lib/Evaluate/intrinsics-library.cpp =================================================================== --- flang/lib/Evaluate/intrinsics-library.cpp +++ flang/lib/Evaluate/intrinsics-library.cpp @@ -330,12 +330,16 @@ using F = FuncPointer; using FN = FuncPointer; static constexpr HostRuntimeFunction table[]{ - FolderFactory::Create("bessel_j0"), - FolderFactory::Create("bessel_j1"), - FolderFactory::Create("bessel_jn"), - FolderFactory::Create("bessel_y0"), - FolderFactory::Create("bessel_y1"), - FolderFactory::Create("bessel_yn"), +#if defined(__PPC__) && defined(__LONG_DOUBLE_128__) && \ + !defined(__LONG_DOUBLE_IEEE128__) + // double-double, not supported; TODO: use HostTypeExists instead + FolderFactory::Create("bessel_j0"), + FolderFactory::Create("bessel_j1"), + FolderFactory::Create("bessel_jn"), + FolderFactory::Create("bessel_y0"), + FolderFactory::Create("bessel_y1"), + FolderFactory::Create("bessel_yn"), +#endif // defined(__PPC__) && ... }; static constexpr HostRuntimeMap map{table}; static_assert(map.Verify(), "map must be sorted");