projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f91a3
)
Use helper function to check for low registers.
author
Jim Grosbach
<grosbach@apple.com>
Fri, 19 Aug 2011 17:57:22 +0000
(17:57 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Fri, 19 Aug 2011 17:57:22 +0000
(17:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138048
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 9658e0801df8e57f6881c904b6c7243a0e53ef70..58d01e8bd024891d2496c36d2c33e9b3f3054377 100644
(file)
--- a/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@
-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");
}