[clang] [llvm] [RISCV] Support Zvfbfa codegen and C intrinsics (PR #161158)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 19:10:39 PDT 2025


================
@@ -288,9 +288,10 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
   bool hasVInstructionsI64() const { return HasStdExtZve64x; }
   bool hasVInstructionsF16Minimal() const { return HasStdExtZvfhmin; }
   bool hasVInstructionsF16() const { return HasStdExtZvfh; }
-  bool hasVInstructionsBF16Minimal() const { return HasStdExtZvfbfmin; }
+  bool hasVInstructionsBF16Minimal() const { return HasStdExtZvfbfmin || HasStdExtZvfbfa; }
   bool hasVInstructionsF32() const { return HasStdExtZve32f; }
   bool hasVInstructionsF64() const { return HasStdExtZve64d; }
+  bool hasVInstructionsBF16() const { return HasStdExtZvfbfmin || HasStdExtZvfbfa; }
----------------
topperc wrote:

This shouldn't include `HasStdExtZvfbfmin`. Right now it's identical to `hasVInstructionsBF16Minimal`

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


More information about the llvm-commits mailing list