arm-asm: Add error case in asm_multiplication_opcode

This commit is contained in:
Danny Milosavljevic 2020-12-27 16:14:32 +01:00
parent e0cb5184f5
commit 3a6f3e5f30
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5

View File

@ -732,8 +732,8 @@ static void asm_multiplication_opcode(TCCState *s1, int token)
memcpy(&ops[2], &ops[0], sizeof(ops[1])); // ARM is actually like this! memcpy(&ops[2], &ops[0], sizeof(ops[1])); // ARM is actually like this!
break; break;
default: default:
memcpy(&ops[2], &ops[1], sizeof(ops[1])); // move ops[2] expect("at least three operands");
memcpy(&ops[1], &ops[0], sizeof(ops[0])); // ops[1] was implicit return;
} }
nb_ops = 3; nb_ops = 3;
} }