mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
ARM accept an immediate offset in memory operands w/o the '#'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144709 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dec23b679e
commit
6cb4b08182
@ -3559,9 +3559,12 @@ parseMemory(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
||||
}
|
||||
|
||||
// If we have a '#', it's an immediate offset, else assume it's a register
|
||||
// offset.
|
||||
if (Parser.getTok().is(AsmToken::Hash)) {
|
||||
Parser.Lex(); // Eat the '#'.
|
||||
// offset. Be friendly and also accept a plain integer (without a leading
|
||||
// hash) for gas compatibility.
|
||||
if (Parser.getTok().is(AsmToken::Hash) ||
|
||||
Parser.getTok().is(AsmToken::Integer)) {
|
||||
if (Parser.getTok().is(AsmToken::Hash))
|
||||
Parser.Lex(); // Eat the '#'.
|
||||
E = Parser.getTok().getLoc();
|
||||
|
||||
bool isNegative = getParser().getTok().is(AsmToken::Minus);
|
||||
|
Loading…
Reference in New Issue
Block a user