[clang] [RISCV][Clang] Added builtin support for experimental Zimop extension (PR #79971)
Lyut Nersisyan via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 6 07:02:56 PST 2024
================
@@ -5588,6 +5588,14 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
// Check if rnum is in [0, 10]
case RISCV::BI__builtin_riscv_aes64ks1i:
return SemaBuiltinConstantArgRange(TheCall, 1, 0, 10);
+ // Check if n of mop.r.[n] is in [0, 31]
+ case RISCV::BI__builtin_riscv_mopr_32:
+ case RISCV::BI__builtin_riscv_mopr_64:
+ return SemaBuiltinConstantArgRange(TheCall, 1, 0, 31);
----------------
ln8-8 wrote:
Added zimop-invalid.s test
https://github.com/llvm/llvm-project/pull/79971
More information about the cfe-commits
mailing list