forked from OSchip/llvm-project
Use helper function to check for low registers.
llvm-svn: 138048
This commit is contained in:
parent
3fe94e3ef8
commit
7473329725
|
@ -3015,7 +3015,7 @@ validateInstruction(MCInst &Inst,
|
|||
if (Reg == Rn)
|
||||
doesWriteback = false;
|
||||
// Anything other than a low register isn't legal here.
|
||||
if (getARMRegisterNumbering(Reg) > 7)
|
||||
if (!isARMLowRegister(Reg))
|
||||
return Error(Operands[4]->getStartLoc(),
|
||||
"registers must be in range r0-r7");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue