RISC-V uses ISD::ABS lower method (abs x) -> (smax_vl x (sub_vl 0, x)) for ISD::VP_ABS.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D141033
[VP][RISCV] Add vp.abs and RISC-V support. ClosedPublic Authored by fakepaper56 on Jan 4 2023, 11:48 PM.
Details Summary RISC-V uses ISD::ABS lower method (abs x) -> (smax_vl x (sub_vl 0, x)) for ISD::VP_ABS.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 5 2023, 8:53 AM This revision was landed with ongoing or failed builds.Jan 5 2023, 11:18 PM Closed by commit rG5a57ebcc4326: [VP][RISCV] Add vp.abs and RISC-V support. (authored by fakepaper56). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 486479 llvm/docs/LangRef.rst
llvm/include/llvm/IR/Intrinsics.td
llvm/include/llvm/IR/VPIntrinsics.def
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/abs-vp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-abs-vp.ll
llvm/unittests/IR/VPIntrinsicTest.cpp
|