[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 25 09:58:31 PDT 2025
================
@@ -535,6 +535,19 @@ static DecodeStatus decodeRTZArg(MCInst &Inst, uint32_t Imm, int64_t Address,
Inst.addOperand(MCOperand::createImm(Imm));
return MCDisassembler::Success;
}
+template <int Bits>
+static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address,
+ const MCDisassembler *Decoder) {
+ if (Imm & ~((1LL << Bits) - 1))
----------------
topperc wrote:
Please use isUInt from MathExtras.h
https://github.com/llvm/llvm-project/pull/145647
More information about the cfe-commits
mailing list