[PATCH] D95563: [RISCV] Add initial support for 128-bit fixed vectors with RVV.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 14:25:09 PST 2021


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

This adds basic support for 128-bit fixed vectors using a single vector
register as the 1.0 V spec has a minimum VLEN of 128 bits. This
first patch includes support for VV versions of the integer and FP
binary operations and vector loads and stores. This is all off by
default and requires a command line to enable.

Portions of this are inspired by the D91638 <https://reviews.llvm.org/D91638> proof of concept from
Fraser Cormack.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95563

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
  llvm/lib/Target/RISCV/RISCVRegisterInfo.td
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95563.319678.patch
Type: text/x-patch
Size: 42542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210127/07eaa2ce/attachment.bin>


More information about the llvm-commits mailing list