[PATCH] D125875: [RISCV] Add vread_csr and vwrite_csr to riscv_vector.h

Wang Pengcheng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 04:15:54 PDT 2022


pcwang-thead created this revision.
pcwang-thead added reviewers: asb, luismarques, kito-cheng, craig.topper.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, frasercrmck, evandro, 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, arichardson.
Herald added a project: All.
pcwang-thead requested review of this revision.
Herald added subscribers: cfe-commits, eopXD, MaskRay.
Herald added a project: clang.

These two functions are described in RVV intrinsics doc
to read/write RVV CSRs. This matches what GCC does.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125875

Files:
  clang/include/clang/Basic/riscv_vector.td
  clang/test/CodeGen/RISCV/rvv-vread-csr.c
  clang/test/CodeGen/RISCV/rvv-vwrite-csr.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125875.430320.patch
Type: text/x-patch
Size: 5106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220518/95f9e4fd/attachment.bin>


More information about the cfe-commits mailing list