allow (base,index) as alias to (base,index,1)
This commit is contained in:
parent
5487bc23c8
commit
6ca0299e5b
1 changed files with 4 additions and 2 deletions
|
@ -320,9 +320,11 @@ static void parse_operand(TCCState *s1, Operand *op)
|
||||||
if (tok != ',') {
|
if (tok != ',') {
|
||||||
op->reg2 = asm_parse_reg();
|
op->reg2 = asm_parse_reg();
|
||||||
}
|
}
|
||||||
skip(',');
|
if (tok == ',') {
|
||||||
|
next();
|
||||||
op->shift = get_reg_shift(s1);
|
op->shift = get_reg_shift(s1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
skip(')');
|
skip(')');
|
||||||
}
|
}
|
||||||
if (op->reg == -1 && op->reg2 == -1)
|
if (op->reg == -1 && op->reg2 == -1)
|
||||||
|
|
Loading…
Reference in a new issue