[RISCV] Support select/merge like ops for fp16 vectors when only have Zvfhmin
commit5278cc364b1dc518920c427a87094cb0855a0758
authorJianjian GUAN <jacquesguan@me.com>
Tue, 29 Aug 2023 03:03:31 +0000 (29 11:03 +0800)
committerJianjian GUAN <jacquesguan@me.com>
Wed, 27 Sep 2023 06:53:14 +0000 (27 14:53 +0800)
tree1736bc04238b3704041159f80ff257ac83fab008
parentdfab31b41b4988b6dc8129840eba68f0c36c0f13
[RISCV] Support select/merge like ops for fp16 vectors when only have Zvfhmin

This patch supports VP_MERGE, VP_SELECT, SELECT, SELECT_CC for fp16 vectors when only have Zvfhmin.

Reviewed By: michaelmaitland

Differential Revision: https://reviews.llvm.org/D159053
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-select-fp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vpmerge.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vselect-vp.ll
llvm/test/CodeGen/RISCV/rvv/select-fp.ll
llvm/test/CodeGen/RISCV/rvv/vpmerge-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vselect-fp.ll
llvm/test/CodeGen/RISCV/rvv/vselect-vp.ll