[PATCH] D139288: [Clang][LoongArch] Add intrinsic for csrrd, csrwr and csrxchg

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 4 20:02:52 PST 2022


gonglingqin added a comment.

In D139288#3969746 <https://reviews.llvm.org/D139288#3969746>, @xen0n wrote:

> You'll also need the IOCSR intrinsics too for building Linux. Since they're very similar to some of the CSR intrinsics you added here, do you plan to add support for them later here or in a separate follow-up change?

Thanks for your reminding. The IOCSR intrinsics has been implemented and I will submit it later.



================
Comment at: clang/lib/Headers/larchintrin.h:84
+
+#ifdef __loongarch_grlen == 64
+#define __csrrd_d(/*ui14*/ _1)                                                 \
----------------
xen0n wrote:
> Did you actually test this? ;-)
Thank you for checking, I will modify it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139288/new/

https://reviews.llvm.org/D139288



More information about the llvm-commits mailing list