Logical Shift Right
SHRU
3-113
TMS320C62x/C67x Fixed-Point Instruction Set
Syntax
SHRU (.unit)
src2, src1, dst
.unit = .S1 or .S2
Opcode map field used...
For operand type...
Unit
Opfield
src2
src1
dst
xuint
uint
uint
.S1, .S2
100111
src2
src1
dst
ulong
uint
ulong
.S1, .S2
100101
src2
src1
dst
xuint
ucst5
uint
.S1, .S2
100110
src2
src1
dst
ulong
ucst5
ulong
.S1, .S2
100100
Opcode
31
29 28 27
23 22
18 17
creg
z
dst
13 12
5
4
3
2
1
0
op
0
0
0
s
p
3
5
5
5
6
6
1
11
x
src1/cst
src2
Description
The
src2 operand is shifted to the right by the src1 operand. The zero-
extended result is placed in
dst. When a register is used, the six LSBs specify
the shift amount and valid values are 0–40. When an immediate is used, valid
shift amounts are 0–31.
If 39
<
src1
<
64,
src2 is shifted to the right by 40. Only the six LSBs are valid
for the register version of the instruction. If any of the 26 MSBs are non-zero,
the result is invalid.
Execution
if (cond)
src2
>>
z
src1
→
dst
else
nop
Pipeline
Stage
E1
Read
src1, src2
Written
dst
Unit in use
.S
Instruction Type
Single-cycle
Pipeline