Encoding:

POOL32A

000000

rt

Impl

MFHC2

1000110100

POOL32AXf

111100

6

5

5

10

6

Format:

MFHC2 rt, Impl

microMIPS

Move Word From High Half of Coprocessor 2 Register

Purpose:

Move Word From High Half of Coprocessor 2 Register

To copy a word from the high half of a COP2 general register to a GPR.

Description:

 GPR[rt] = sign_extend(CP2CPR[Impl]63..32)

The contents of the high word of the coprocessor 2 register denoted by the Impl field are sign-extended and placed into GPR rt. The interpretation of the Impl field is left entirely to the Coprocessor 2 implementation and is not specified by the architecture.

Restrictions:

The results are UNPREDICTABLE if the Impl field specifies a coprocessor 2 register that does not exist, or if that register is not 64 bits wide.

In implementations prior to Release 2 of the architecture, this instruction resulted in a Reserved Instruction exception.

Operation:

data = CP2CPR[Impl]63..32
GPR[rt] = sign_extend(data)

Exceptions:

Coprocessor Unusable, Reserved Instruction