diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-11-10 23:01:27 +0000 | 
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-11-10 23:01:27 +0000 | 
| commit | a113eb02057c304164ded0d124c962ce32638f39 (patch) | |
| tree | ff2b45a0ce2ea1e5b996fcf76eb49c6421abb3dc /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
| parent | 105c7edf7c2f79d42ad120b347418091537da625 (diff) | |
| download | bcm5719-llvm-a113eb02057c304164ded0d124c962ce32638f39.tar.gz bcm5719-llvm-a113eb02057c304164ded0d124c962ce32638f39.zip | |
Thumb1 diagnostics for reglist on PUSH/POP fix.
Was not checking the first register in the register list.
llvm-svn: 144329
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index d8870532daf..0cc2e5ad591 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -4528,14 +4528,14 @@ validateInstruction(MCInst &Inst,    }    case ARM::tPOP: {      bool listContainsBase; -    if (checkLowRegisterList(Inst, 3, 0, ARM::PC, listContainsBase)) +    if (checkLowRegisterList(Inst, 2, 0, ARM::PC, listContainsBase))        return Error(Operands[2]->getStartLoc(),                     "registers must be in range r0-r7 or pc");      break;    }    case ARM::tPUSH: {      bool listContainsBase; -    if (checkLowRegisterList(Inst, 3, 0, ARM::LR, listContainsBase)) +    if (checkLowRegisterList(Inst, 2, 0, ARM::LR, listContainsBase))        return Error(Operands[2]->getStartLoc(),                     "registers must be in range r0-r7 or lr");      break; | 

