mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
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
This commit is contained in:
parent
1f6e3f9544
commit
ceee984302
@ -2905,6 +2905,12 @@ parseVectorLane(VectorLaneTy &LaneKind, unsigned &Index) {
|
|||||||
Parser.Lex(); // Eat the ']'.
|
Parser.Lex(); // Eat the ']'.
|
||||||
return MatchOperand_Success;
|
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;
|
const MCExpr *LaneIndex;
|
||||||
SMLoc Loc = Parser.getTok().getLoc();
|
SMLoc Loc = Parser.getTok().getLoc();
|
||||||
if (getParser().ParseExpression(LaneIndex)) {
|
if (getParser().ParseExpression(LaneIndex)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user