Download VR4181 specs - Delorie Software

Transcript
CHAPTER 3 MISP III INSTRUCTION SET SUMMARY
Table 3-11. Multiply/Divide Instructions (Extended ISA) (2/2)
Instruction
op
Format and Description
rs
rt
rd
sa
funct
Multiply and Add 16bit Integer
MADD16 rs, rt
The contents of registers rt and rs are multiplied, treating both operands as 16-bit signed integers (by
sign extending to 64 bits). The result is added to the combined value of special registers HI and LO.
The 64-bit result is stored into special registers HI and LO.
Doubleword Multiply
and Add 16-bit Integer
DMADD16 rs, rt
The contents of registers rt and rs are multiplied, treating both operands as 16-bit signed integers (by
sign extending to 64 bits). The result is added to value of special register LO. The 64-bit result is stored
into special register LO.
MFHI and MFLO instructions after a multiply or divide instruction generate interlocks to delay execution of the next
instruction, inhibiting the result from being read until the multiply or divide instruction completes.
Table 3-12 gives the number of processor cycles (PCycles) required to resolve interlock or stall between various
multiply or divide instructions and a subsequent MFHI or MFLO instruction.
Table 3-12. Number of Stall Cycles in Multiply and Divide Instructions
Instruction
Number of instruction cycles
MULT
1
MULTU
1
DIV
35
DIVU
35
DMULT
4
DMULTU
4
DDIV
67
DDIVU
67
MADD16
1
DMADD16
1
User’s Manual U14272EJ1V0UM00
69