HD6417320 RENESAS [Renesas Technology Corp], HD6417320 Datasheet - Page 199

no-image

HD6417320

Manufacturer Part Number
HD6417320
Description
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
3.5.8
Shift operations can use either register or immediate value as the shift amount operand. Other
source and destination operands are specified by the register. There are two kinds of shift
operations of arithmetic and logical shifts. Table 3.27 shows the variation of this type of operation.
The correspondence between each operand and registers, except for immediate operands, is the
same as the ALU fixed-point operations as shown in table 3.21.
Table 3.27 Variation of Shift Operations
(1)
Figure 3.17 shows the arithmetic shift operation flow.
39
Mnemonic
PSHA Sx, Sy, Dz Arithmetic shift
PSHL Sx, Sy, Dz
PSHA #Imm1, Dz Arithmetic shift with
PSHL #Imm2, Dz Logical shift with
Shift out
Shift amount data
(source 2)
Arithmetic Shift
32 31
Shift Operations
Function
Logical shift
immediate.
immediate.
39
Left shift
16 15
Figure 3.17 Arithmetic Shift Operation Flow
32 31
>=0
+32 to -32
23 22 16
6
Imm1
0
Sy
<0
0
15
0
Source 1
Sx
Sx
Dz
Dz
–32 <= Imm1 <= +32, –16 <= Imm2 <= +16
39
(MSB copy)
0
Updated
32 31
Rev. 3.00 Jan. 18, 2008 Page 137 of 1458
Source 2
Sy
Sy
Imm1
Imm2
Ignored
Section 3 DSP Operating Unit
Right shift
DSR
16 15
GT
REJ09B0033-0300
Destination
Dz
Dz
Dz
Dz
Z
Shift out
N
0
V DC

Related parts for HD6417320