Encoding:

POOL32A

000000

immediate

rd

0

REPL.PH

0000111101

6

10

5

1

10

SPECIAL3

011111

immediate

rd

REPL.PH

01010

ABSQ_S.PH

010010

6

10

5

5

6

Format:

REPL.PH  rd, immediate

microMIPSDSP

Replicate Immediate Integer into all Vector Element Positions

Purpose:

Replicate Immediate Integer into all Vector Element Positions

Replicate a sign-extended, 10-bit signed immediate integer value into the two right-most halfwords in a halfword vector.

Description:

rd = sign_extend(sign_extend(immediate) || sign_extend(immediate))

The specified 10-bit signed immediate integer value is sign-extended to 16 bits and replicated into the two right-most halfword positions in destination register rd.

The sign of the immediate value is sign-extended into the 32 most-significant bits of the destination register.

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:

temp15..0 = (immediate9)6 || immediate9..0
GPR[rd]63..0 = (temp15..0)32 || temp15..0 || temp15..0

Exceptions:

Reserved Instruction, DSP Disabled