aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/AsmParser
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-12-13 21:48:29 +0000
committerJim Grosbach <grosbach@apple.com>2011-12-13 21:48:29 +0000
commit27debd60a152d39e421c57bce511f16d8439a670 (patch)
treee6bb8120e574d739ad8de277c43564eb1d264b93 /lib/Target/ARM/AsmParser
parentb0659873e6d983eae1e29ecddedcfabb9cdc1eea (diff)
downloadexternal_llvm-27debd60a152d39e421c57bce511f16d8439a670.zip
external_llvm-27debd60a152d39e421c57bce511f16d8439a670.tar.gz
external_llvm-27debd60a152d39e421c57bce511f16d8439a670.tar.bz2
ARM LDM/STM system instruction variants.
rdar://10550269 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146519 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser')
-rw-r--r--lib/Target/ARM/AsmParser/ARMAsmParser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 643ba71..745fa89 100644
--- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -2666,7 +2666,15 @@ parseRegisterList(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
return Error(E, "'}' expected");
Parser.Lex(); // Eat '}' token.
+ // Push the register list operand.
Operands.push_back(ARMOperand::CreateRegList(Registers, S, E));
+
+ // The ARM system instruction variants for LDM/STM have a '^' token here.
+ if (Parser.getTok().is(AsmToken::Caret)) {
+ Operands.push_back(ARMOperand::CreateToken("^",Parser.getTok().getLoc()));
+ Parser.Lex(); // Eat '^' token.
+ }
+
return false;
}