[PATCH] D92262: [RISCV] Add isel patterns for SBCLRI/SBSETI/SBINVI(W) instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 28 01:16:33 PST 2020


craig.topper created this revision.
craig.topper added reviewers: frasercrmck, asb, lenary, luismarques.
Herald added subscribers: NickHung, evandro, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.

We can use these instructions for single bit immediates that are too large for ANDI/ORI/CLRI.

The _10 test cases are to make sure that we still use ANDI/ORI/CLRI for small immediates.


https://reviews.llvm.org/D92262

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoB.td
  llvm/test/CodeGen/RISCV/rv32Zbs.ll
  llvm/test/CodeGen/RISCV/rv32Zbt.ll
  llvm/test/CodeGen/RISCV/rv64Zbb.ll
  llvm/test/CodeGen/RISCV/rv64Zbs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92262.308143.patch
Type: text/x-patch
Size: 26145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201128/3fcae406/attachment.bin>


More information about the llvm-commits mailing list