[llvm] [ARM64EC] Warn on using disallowed registers in assembly src. (PR #93618)
Namish Kukreja via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 15:43:03 PDT 2024
================
@@ -5335,8 +5461,8 @@ bool AArch64AsmParser::validateInstruction(MCInst &Inst, SMLoc &IDLoc,
(Reg >= AArch64::S16 && Reg <= AArch64::S31) ||
(Reg >= AArch64::H16 && Reg <= AArch64::H31) ||
(Reg >= AArch64::B16 && Reg <= AArch64::B31)) {
- Warning(IDLoc, "this instruction uses disallowed registers.");
- break;
+ Warning(IDLoc, "register " + getArm64ECDisallowedRegName(Reg) +
----------------
namikukr wrote:
I was looking for something like this, but I couldn't find it - I'm really new to the codebase... thank you!
https://github.com/llvm/llvm-project/pull/93618
More information about the llvm-commits
mailing list