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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue