diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-03-19 20:39:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-03-19 20:39:53 +0000 |
commit | ceee984302a1cf1d659a186cf94149c779866da5 (patch) | |
tree | 3fe5d5d5d8f9cb6f5eaf6391075ecb58e3a4bb4b /lib/Target/ARM | |
parent | 1f6e3f9544c93213111a2f8b314c926c0d0e30e5 (diff) | |
download | external_llvm-ceee984302a1cf1d659a186cf94149c779866da5.zip external_llvm-ceee984302a1cf1d659a186cf94149c779866da5.tar.gz external_llvm-ceee984302a1cf1d659a186cf94149c779866da5.tar.bz2 |
ARM assembly, accept optional '#' on lane index number.
rdar://11057160
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 8f3bd6d..ccdadd8 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -2905,6 +2905,12 @@ parseVectorLane(VectorLaneTy &LaneKind, unsigned &Index) { Parser.Lex(); // Eat the ']'. return MatchOperand_Success; } + + // There's an optional '#' token here. Normally there wouldn't be, but + // inline assemble puts one in, and it's friendly to accept that. + if (Parser.getTok().is(AsmToken::Hash)) + Parser.Lex(); // Eat the '#' + const MCExpr *LaneIndex; SMLoc Loc = Parser.getTok().getLoc(); if (getParser().ParseExpression(LaneIndex)) { |