mirror of
git://repo.or.cz/tinycc.git
synced 2026-07-04 18:38:41 +08:00
arm-asm: Raise error if user tries to use a shift instruction with an immediate source operand
This commit is contained in:
parent
1ed4b6ba1a
commit
104037a4c5
@ -865,7 +865,8 @@ static void asm_shift_opcode(TCCState *s1, int token)
|
|||||||
case OP_IM8:
|
case OP_IM8:
|
||||||
operands |= ENCODE_IMMEDIATE_FLAG;
|
operands |= ENCODE_IMMEDIATE_FLAG;
|
||||||
operands |= ops[1].e.v;
|
operands |= ops[1].e.v;
|
||||||
break;
|
tcc_error("Using an immediate value as the source operand is not possible with '%s' instruction on ARM", get_tok_str(token, NULL));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ops[2].type) {
|
switch (ops[2].type) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user