Use helper function to check for low registers.

llvm-svn: 138048
This commit is contained in:
Jim Grosbach 2011-08-19 17:57:22 +00:00
parent 3fe94e3ef8
commit 7473329725
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}