[llvm] [RISCV] Lower insert_vector_elt on zvfhmin/zvfbfmin (PR #110221)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 29 21:01:01 PDT 2024
================
@@ -8769,6 +8771,17 @@ SDValue RISCVTargetLowering::lowerINSERT_VECTOR_ELT(SDValue Op,
return DAG.getNode(ISD::TRUNCATE, DL, VecVT, Vec);
}
+ if ((ValVT == MVT::f16 && !Subtarget.hasVInstructionsF16()) ||
+ ValVT == MVT::bf16) {
+ // If we don't have vfmv.s.f for f16/bf16, insert into fmv.x.h first
+ MVT IntVT = VecVT.changeTypeToInteger();
+ // SDValue IntVal = DAG.getBitcast(IntVT.getVectorElementType(), Val);
----------------
lukel97 wrote:
Woops, removed
https://github.com/llvm/llvm-project/pull/110221
More information about the llvm-commits
mailing list