Encoding:

001000

rt

rs

0011000

100

111

111

6

5

5

7

3

3

3

Format:

BITREV rt, rs

DSP

Bit-Reverse Halfword

Purpose:

Bit-Reverse Halfword

To reverse the order of the bits of the least-significant halfword in the specified register.

Description:

rt = rs0..15

The right-most halfword value in register rs is bit-reversed into the right-most halfword position in the destination register rt. The 16 most-significant bits of the destination register are zero-filled.

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:

ValidateAccessToDSPResources()
temp15..0 = GPR[rs]0..15
GPR[rt]31..0 = 016 || temp15..0

Exceptions:

Reserved Instruction, DSP Disabled