[llvm] [RISCV] Add codegen support for Zvfbfmin (PR #87911)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 16:47:52 PDT 2024
================
@@ -1081,6 +1081,23 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
}
}
+ // TODO: Could we merge some code with zvfhmin?
+ if (Subtarget.hasVInstructionsBF16()) {
+ for (MVT VT : BF16VecVTs) {
+ if (!isTypeLegal(VT))
+ continue;
+ setOperationAction({ISD::FP_ROUND, ISD::FP_EXTEND}, VT, Custom);
+ setOperationAction({ISD::VP_FP_ROUND, ISD::VP_FP_EXTEND}, VT, Custom);
+ setOperationAction({ISD::STRICT_FP_ROUND, ISD::STRICT_FP_EXTEND}, VT,
+ Custom);
+ setOperationAction({ISD::CONCAT_VECTORS, ISD::INSERT_SUBVECTOR,
----------------
topperc wrote:
Are concat, insert, extract, and scalar_to_vector tested? It's not immediately obvious from the test names
https://github.com/llvm/llvm-project/pull/87911
More information about the llvm-commits
mailing list