Move 16-Bit Constant Into Upper Bits of Register

 

MVKH/MVKLH

 

Move 16-Bit Constant Into Upper Bits of Register

 

 

 

 

 

 

 

 

MVKH/MVKLH

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

MVKH (.unit) cst, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MVKLH (.unit) cst, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .S1 or .S2

 

 

 

 

 

 

 

 

Compatibility

 

 

C62x, C64x, C67x, and C67x+ CPU

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

31

29

28

27

23

22

7

6

5

4

3

2

1

0

creg

z

dst

cst16

1 1 0

1 0 s p

3

1

5

 

16

1

1

 

 

 

 

 

 

 

 

 

 

Opcode map field used...

For operand type...

Unit

 

 

 

 

 

 

 

 

 

 

 

cst16

uscst16

.S1, .S2

 

 

 

 

dst

sint

 

 

 

 

 

 

 

 

 

Description

Execution

Pipeline

The 16-bit constant, cst16 , is loaded into the upper 16 bits of dst. The 16 LSBs of dst are unchanged. For the MVKH instruction, the assembler encodes the 16 MSBs of a 32-bit constant into the cst16 field of the opcode . For the MVKLH instruction, the assembler encodes the 16 LSBs of a constant into the cst16 field of the opcode.

For the MVKLH instruction:

if (cond)((cst15..0) << 16) or (dst15..0) dst else nop

For the MVKH instruction:

if (cond)((cst31..16) << 16) or (dst15..0) dst else nop

Pipeline

StageE1

Read

Written dst

Unit in use

.S

 

 

SPRU733

Instruction Set

3-185

Page 245
Image 245
Texas Instruments TMS320C67X/C67X+ DSP manual Move 16-Bit Constant Into Upper Bits of Register, Mvkh/Mvklh