[VP][RISCV] Recommit "Add vp.fshl/fshr and RISC-V support."
authorYeting Kuo <yeting.kuo@sifive.com>
Wed, 7 Dec 2022 06:37:58 +0000 (14:37 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Wed, 7 Dec 2022 07:58:12 +0000 (15:58 +0800)
commit0f8c761c487486f512eaae27c22bfd15d67ec44d
treeb7f6f235851d640912034b4384e75fcc3cc052df
parent6d34074d86002db04a6d5f1a716e25ebfdc68f64
[VP][RISCV] Recommit "Add vp.fshl/fshr and RISC-V support."

This reverts commit 7883e5b061bdbbe8bee5f479ebe911db5045b7e9.

The original commit was reverted that it didn't update test files after D136263
landed. The recommit fixed those.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D139509
12 files changed:
llvm/docs/LangRef.rst
llvm/include/llvm/IR/Intrinsics.td
llvm/include/llvm/IR/VPIntrinsics.def
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/rvv-intrinsics.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fshr-fshl-vp.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/fshr-fshl-vp.ll [new file with mode: 0644]
llvm/unittests/IR/VPIntrinsicTest.cpp