summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-12-20 22:26:38 +0000
committerJim Grosbach <grosbach@apple.com>2011-12-20 22:26:38 +0000
commit4eda145c7f7d9613bca33606943ca34f29ee49e6 (patch)
treee4f3e245f2fc16e019dda999146d076b7e2d3bf8 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parentdac1d48d8de655c24edcaf4180db8e4085e946a1 (diff)
downloadbcm5719-llvm-4eda145c7f7d9613bca33606943ca34f29ee49e6.tar.gz
bcm5719-llvm-4eda145c7f7d9613bca33606943ca34f29ee49e6.zip
Move comment to appropriate place.
llvm-svn: 147000
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 23aa0bd9fdc..94631890acc 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -4297,7 +4297,6 @@ bool ARMAsmParser::parseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands,
Error(Parser.getTok().getLoc(), "unexpected token in operand");
return true;
case AsmToken::Identifier: {
- // If this is VMRS, check for the apsr_nzcv operand.
if (!tryParseRegisterWithWriteBack(Operands))
return false;
int Res = tryParseShiftRegister(Operands);
@@ -4305,6 +4304,7 @@ bool ARMAsmParser::parseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands,
return false;
else if (Res == -1) // irrecoverable error
return true;
+ // If this is VMRS, check for the apsr_nzcv operand.
if (Mnemonic == "vmrs" && Parser.getTok().getString() == "apsr_nzcv") {
S = Parser.getTok().getLoc();
Parser.Lex();
OpenPOWER on IntegriCloud