Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Handle f16/bf16 extract_vector_elt when scalar type is legal (l…
…lvm#110144) When the scalar type is illegal, it gets softened during type legalization and gets lowered as an integer. However with zfhmin/zfbfmin the type is now legal and it passes through type legalization where it crashes because we didn't have any custom lowering or patterns for it. This handles said case via the existing custom lowering to a vslidedown and vfmv.f.s. It also handles the case where we only have zvfhmin/zvfbfmin and don't have vfmv.f.s, in which case we need to extract it to a GPR and then use fmv.h.x. Fixes llvm#110126
- Loading branch information