[PATCH] D158350: [RISCV][GISel] Make G_SEXT_INREG with source size of 32 legal for RV64.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 19 14:37:09 PDT 2023


craig.topper created this revision.
craig.topper added reviewers: arsenm, nitinjohnraj, asb, reames.
Herald added subscribers: jobnoorman, luke, sunshaoce, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: wangpc, eopXD, MaskRay, wdng.
Herald added a project: LLVM.

This maps to the sext.w instruction.

As far as I could tell this needs custom lowering to check the immediate.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158350

Files:
  llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
  llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158350.551790.patch
Type: text/x-patch
Size: 9818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230819/d6e17c3a/attachment.bin>


More information about the llvm-commits mailing list