xen0n added a comment. 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?
================ Comment at: clang/lib/Headers/larchintrin.h:84 + +#ifdef __loongarch_grlen == 64 +#define __csrrd_d(/*ui14*/ _1) \ ---------------- Did you actually test this? ;-) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139288/new/ https://reviews.llvm.org/D139288 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits