[PATCH] D144229: [RISCV] Select signed and unsigned bitfield extracts for XTHeadBb

Philipp Tomsich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 15:42:40 PST 2023


philipp.tomsich created this revision.
philipp.tomsich added reviewers: craig.topper, asb, kito-cheng, JojoR.
Herald added subscribers: luke, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
philipp.tomsich requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

The XTHeadBb extension hab both signed and unsigned bitfield
extraction instructions (TH.EXT and TH.EXTU, respectively) which have
previously only been supported for sign extension on byte, halfword,
and word-boundaries.

This adds the infrastructure to use TH.EXT and TH.EXTU for arbitrary
bitfield extraction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144229

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
  llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
  llvm/test/CodeGen/RISCV/bitextract-mac.ll
  llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
  llvm/test/CodeGen/RISCV/rotl-rotr.ll
  llvm/test/CodeGen/RISCV/rv32xtheadbb.ll
  llvm/test/CodeGen/RISCV/rv64xtheadbb.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144229.498179.patch
Type: text/x-patch
Size: 14785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230216/c4fd22af/attachment.bin>


More information about the llvm-commits mailing list