mirror of https://github.com/mgba-emu/mgba.git
Implement SMULL
This commit is contained in:
parent
698bc0ada5
commit
e1963c6e60
|
@ -522,8 +522,11 @@ DEFINE_MULTIPLY_INSTRUCTION_ARM(MLA, cpu->gprs[rdHi] = cpu->gprs[rm] * cpu->gprs
|
|||
DEFINE_MULTIPLY_INSTRUCTION_ARM(MUL, cpu->gprs[rdHi] = cpu->gprs[rm] * cpu->gprs[rs], ARM_NEUTRAL_S(cpu->gprs[rm], cpu->gprs[rs], cpu->gprs[rd]))
|
||||
DEFINE_INSTRUCTION_ARM(SMLAL, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_ARM(SMLALS, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_ARM(SMULL, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_ARM(SMULLS, ARM_STUB)
|
||||
DEFINE_MULTIPLY_INSTRUCTION_ARM(SMULL,
|
||||
int64_t d = ((int64_t) cpu->gprs[rm]) * ((int64_t) cpu->gprs[rs]);
|
||||
cpu->gprs[rd] = d;
|
||||
cpu->gprs[rdHi] = d >> 32;,
|
||||
ARM_NEUTRAL_HI_S(cpu->gprs[rd], cpu->gprs[rdHi]))
|
||||
DEFINE_INSTRUCTION_ARM(UMLAL, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_ARM(UMLALS, ARM_STUB)
|
||||
DEFINE_MULTIPLY_INSTRUCTION_ARM(UMULL,
|
||||
|
|
Loading…
Reference in New Issue