[RISCV] Add intrinsics for vfmv.f.s and vfmv.s.f
authorCraig Topper <craig.topper@sifive.com>
Fri, 18 Dec 2020 19:11:15 +0000 (11:11 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 18 Dec 2020 19:11:15 +0000 (11:11 -0800)
commit46a40c4bc10671ebddb45fabd1a3b0b419a58109
tree61f3b1be6c6fba3e436c92140a8e63c0b9e4ddfc
parent0e94ba9d40d931fc1c647347302f39d24bd88d96
[RISCV] Add intrinsics for vfmv.f.s and vfmv.s.f

Similar to D93365, but for floating point. No need for special ISD opcodes
though. We can directly isel these from intrinsics. I had to use anyfloat_ty
instead of anyvector_ty in the intrinsics to make LLVMVectorElementType not
crash when imported into the -gen-dag-isel tablegen backend.

Differential Revision: https://reviews.llvm.org/D93426
llvm/include/llvm/IR/IntrinsicsRISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfoV.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td