Implement SMULL

This commit is contained in:
Jeffrey Pfau 2013-04-30 01:42:11 -07:00
parent 698bc0ada5
commit e1963c6e60
1 changed files with 5 additions and 2 deletions

View File

@ -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_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(SMLAL, ARM_STUB)
DEFINE_INSTRUCTION_ARM(SMLALS, ARM_STUB) DEFINE_INSTRUCTION_ARM(SMLALS, ARM_STUB)
DEFINE_INSTRUCTION_ARM(SMULL, ARM_STUB) DEFINE_MULTIPLY_INSTRUCTION_ARM(SMULL,
DEFINE_INSTRUCTION_ARM(SMULLS, ARM_STUB) 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(UMLAL, ARM_STUB)
DEFINE_INSTRUCTION_ARM(UMLALS, ARM_STUB) DEFINE_INSTRUCTION_ARM(UMLALS, ARM_STUB)
DEFINE_MULTIPLY_INSTRUCTION_ARM(UMULL, DEFINE_MULTIPLY_INSTRUCTION_ARM(UMULL,