[PATCH] D95134: [RISCV] Use v8-v23 as argument registers to conform to the proposal.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 07:11:47 PST 2021


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

The maximum LMUL is 8. We need 16 vector registers for two LMUL-8 arguments. The modification follows the proposal of psABI in https://github.com/riscv/riscv-elf-psabi-doc/pull/171

There are lots of test files need to be updated. It is too large to contain all of these test files in one commit to upload. I only add vadd test files to demonstrate the modification. If this patch is accepted, I will update all of these test files and commit them to the repository.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95134

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/vadd-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vadd-rv64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95134.318190.patch
Type: text/x-patch
Size: 169153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210121/18c99a66/attachment-0001.bin>


More information about the llvm-commits mailing list