This maps to the sext.w instruction.
As far as I could tell this needs custom lowering to check the immediate.
Paths
| Differential D158350
[RISCV][GISel] Make G_SEXT_INREG with source size of 32 legal for RV64. ClosedPublic Authored by craig.topper on Aug 19 2023, 2:37 PM.
Details Summary This maps to the sext.w instruction. As far as I could tell this needs custom lowering to check the immediate.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 21 2023, 10:01 AM This revision was landed with ongoing or failed builds.Aug 21 2023, 10:43 AM Closed by commit rG479716d95431: [RISCV][GISel] Make G_SEXT_INREG with source size of 32 legal for RV64. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 552079 llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-div.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-icmp.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-rem.mir
|