Encoding:

SPECIAL3

011111

0

00000

rt

rd

PRECEQ.W.PHR

01101

ABSQ_S.PH

010010

6

5

5

5

5

6

Format:

PRECEQ.W.PHR rd, rt

MIPSDSP

Precision Expand Fractional Halfword to Fractional Word Value

Purpose:

Precision Expand Fractional Halfword to Fractional Word Value

Expand the precision of a Q15 fractional value taken from the right element of a paired halfword vector to create a

Q31 fractional word value.

Description:

rd = sign_extend(expand_prec(rt15..0))

The right Q15 fractional halfword value from the two right-most halfwords in register rt is expanded to a Q31 fractional value, sign-extended to 64 bits, and written to destination register rd. The precision expansion is achieved by appending 16 least-significant zero bits to the original halfword value to generate the 32-bit fractional value.

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:

temp31..0 = GPR[rt]15..0 || 016
GPR[rd]63..0 = (temp31)32 || temp31..0

Exceptions:

Reserved Instruction, DSP Disabled