mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
Use helper function to check for low registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60f91a3d95
commit
2f7232efd5
@ -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
Block a user