[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
Wed Mar 19 09:11:38 PDT 2025


================
@@ -2333,6 +2344,14 @@ 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()};
+#if !(defined(FLANG_RUNTIME_F128_MATH_LIB) || HAS_LDBL128)
----------------
klausler wrote:

Don't use configuration macros for this test.  Use the TargetCharacteristics structure instead.

https://github.com/llvm/llvm-project/pull/125217


More information about the flang-commits mailing list