[llvm] [clang] [RISCV] Introduce and use BF16 in Xsfvfwmaccqqq intrinsics (PR #71140)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 5 18:33:35 PST 2023


================
@@ -6046,6 +6046,12 @@ void Sema::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D) {
       !TI.hasFeature("zvfh") && !TI.hasFeature("zvfhmin"))
     Diag(Loc, diag::err_riscv_type_requires_extension, D)
         << Ty << "zvfh or zvfhmin";
+  // Check if enabled zvfbfmin for BFloat16
+  if (Ty->isRVVType(/* Bitwidth */ 16, /* IsFloat */ false,
+                    /* IsBFloat */ true) &&
+      !TI.hasFeature("experimental-zvfbfmin"))
+    Diag(Loc, diag::err_riscv_type_requires_extension, D)
+        << Ty << "experimental-zvfbfmin";
----------------
topperc wrote:

Drop the "experimental-". That's not part of the extension name.

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


More information about the cfe-commits mailing list