[clang] [ARM64EC] Implement `-mlong-double-{64, 80, 128}` options (PR #237057)

LIU Hao via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 23:24:31 PDT 2026


================
@@ -70,6 +71,32 @@ extern cl::opt<bool> EnableSingleByteCoverage;
 
 namespace {
 
+bool isSoftX87LongDoubleVector(const CodeGenFunction &CGF, QualType Ty) {
+  const auto *VT = Ty->getAs<VectorType>();
+  return VT && CGF.getTarget().hasSoftX87LongDouble() &&
+         VT->getElementType()->isSpecificBuiltinType(BuiltinType::LongDouble);
+}
+
+bool isSoftX87LongDoubleOrVector(const CodeGenFunction &CGF, QualType Ty) {
+  return CGF.getTarget().hasSoftX87LongDouble() &&
+         (Ty->isSpecificBuiltinType(BuiltinType::LongDouble) ||
+          isSoftX87LongDoubleVector(CGF, Ty));
----------------
lhmouse wrote:

Fixed in 3a6e894c4949cab0c01728872d17f5f616c1d98e

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


More information about the cfe-commits mailing list