[flang-commits] [flang] [flang] Define ERF, ERFC and ERFC_SCALED intrinsics with Q and D prefix (PR #125217)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Tue Mar 18 10:20:05 PDT 2025
================
@@ -2333,6 +2343,11 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
CHECK(FloatingType.test(*category));
resultType = DynamicType{*category, defaults.doublePrecisionKind()};
break;
+ case KindCode::quadPrecision:
+ CHECK(result.categorySet == CategorySet{*category});
+ CHECK(FloatingType.test(*category));
+ resultType = DynamicType{*category, defaults.quadPrecisionKind()};
----------------
klausler wrote:
Quad precision is not supported on all targets. You need to catch them and report an error.
https://github.com/llvm/llvm-project/pull/125217
More information about the flang-commits
mailing list