[flang-commits] [PATCH] D124423: [flang] Get ppc64le build bot back up
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Apr 26 08:39:52 PDT 2022
klausler updated this revision to Diff 425230.
klausler added a comment.
Use more precise #if predicate & reformat to placate CI.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124423/new/
https://reviews.llvm.org/D124423
Files:
flang/lib/Evaluate/intrinsics-library.cpp
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<long double, long double>;
using FN = FuncPointer<long double, int, long double>;
static constexpr HostRuntimeFunction table[]{
- FolderFactory<F, F{::j0l}>::Create("bessel_j0"),
- FolderFactory<F, F{::j1l}>::Create("bessel_j1"),
- FolderFactory<FN, FN{::jnl}>::Create("bessel_jn"),
- FolderFactory<F, F{::y0l}>::Create("bessel_y0"),
- FolderFactory<F, F{::y1l}>::Create("bessel_y1"),
- FolderFactory<FN, FN{::ynl}>::Create("bessel_yn"),
+#if defined(__PPC__) && defined(__LONG_DOUBLE_128__) && \
+ !defined(__LONG_DOUBLE_IEEE128__)
+ // double-double, not supported; TODO: use HostTypeExists instead
+ FolderFactory<F, F{::j0l}>::Create("bessel_j0"),
+ FolderFactory<F, F{::j1l}>::Create("bessel_j1"),
+ FolderFactory<FN, FN{::jnl}>::Create("bessel_jn"),
+ FolderFactory<F, F{::y0l}>::Create("bessel_y0"),
+ FolderFactory<F, F{::y1l}>::Create("bessel_y1"),
+ FolderFactory<FN, FN{::ynl}>::Create("bessel_yn"),
+#endif // defined(__PPC__) && ...
};
static constexpr HostRuntimeMap map{table};
static_assert(map.Verify(), "map must be sorted");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124423.425230.patch
Type: text/x-patch
Size: 1389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220426/48876b66/attachment-0001.bin>
More information about the flang-commits
mailing list