Encoding:

SPECIAL

000000

0

000

ac

0

00000

rd

0

00000

MFHI

010000

6

3

2

5

5

5

6

Format:

MFHI rd, ac

MIPS32 pre-Release 6, MIPSDSP

Move from HI register

Purpose:

Move from HI register

To copy the special purpose HI register to a GPR.

Description:

rd = HI[ac]

The HI part of accumulator ac is copied to the general-purpose register rd. The HI part of the accumulator is defined to be bits 64 through 127 of the DSP Module accumulator register.

The value of ac can range from 0 to 3. When ac=0, this refers to the original HI/LO register pair of the MIPS64 architecture.

In Release 6 of the MIPS Architecture, accumulators are eliminated from MIPS64.

Restrictions:

No data-dependent exceptions are possible.

The operands must be values in the specified format. If they are not, the results are UNPREDICTABLE and the values of the operand vectors become UNPREDICTABLE.

Operation:

 GPR[rd]63..0 = HI[ac]63..0 

Exceptions:

Reserved Instruction, DSP Disabled