[clang] [RISCV][clang] Add Zvfbfmin C intrinsics support (PR #79618)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 20:43:45 PST 2024


================
@@ -1883,6 +1883,12 @@ let Log2LMUL = [-3, -2, -1, 0, 1, 2] in {
   def vfncvt_rtz_x_f_w : RVVConvToNarrowingSignedBuiltin<"vfncvt_rtz_x">;
   def vfncvt_rod_f_f_w : RVVConvBuiltin<"v", "vw", "xf", "vfncvt_rod_f">;
 }
+
+// Zvfbfmin - Vector convert BF16 to FP32
+let Log2LMUL = [-2, -1, 0, 1, 2],
+    OverloadedName = "vfwcvtbf16_f" in
+defm : RVVConvBuiltinSet<"vfwcvtbf16_f_f_v", "y", [["Fw", "Fwv"]]>;
----------------
4vtomat wrote:

Yes, we can just define like this~

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


More information about the cfe-commits mailing list