================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits