[PATCH] D93298: [RISCV] add the MC layer support of Zfinx extension
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 4 16:13:30 PST 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:943
+static MCRegister convertGPRToGPRPD(MCRegister Reg) {
+ assert(Reg >= RISCV::X0 && Reg <= RISCV::X31 && !((Reg - RISCV::X0) & 1) &&
+ "Invalid register");
----------------
Use "% 2 == 0" since the next line uses "/ 2"
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93298/new/
https://reviews.llvm.org/D93298
More information about the cfe-commits
mailing list