[llvm-commits] [llvm] r138048 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Jim Grosbach
grosbach at apple.com
Fri Aug 19 10:57:23 PDT 2011
Author: grosbach
Date: Fri Aug 19 12:57:22 2011
New Revision: 138048
URL: http://llvm.org/viewvc/llvm-project?rev=138048&view=rev
Log:
Use helper function to check for low registers.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=138048&r1=138047&r2=138048&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Fri Aug 19 12:57:22 2011
@@ -3015,7 +3015,7 @@
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");
}
More information about the llvm-commits
mailing list