[RISCV] Support Zfa fli instructions with vector splats.
authorCraig Topper <craig.topper@sifive.com>
Fri, 10 Mar 2023 17:16:21 +0000 (09:16 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 10 Mar 2023 17:16:21 +0000 (09:16 -0800)
commit30705e977061e437a337070fd6a21c7df2c62670
tree5febd0086a707907c5f42498ec46e6ea9aaa9427
parent85fe8e01a0005539b7c137b026afce6a60fdaf01
[RISCV] Support Zfa fli instructions with vector splats.

-Return false from RISCVDAGToDAGISel::selectFPImm for fli
 constants so we don't try to use integer expansion.
-Support fli.h with Zvfh+Zfhmin.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D145766
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/test/CodeGen/RISCV/rvv/vsplats-zfa.ll [new file with mode: 0644]