HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 167

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
3.5.8
Shift operations barrel shift and 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
Arithmetic Shift: Figure 3.17 shows the arithmetic shift operation flow.
Note: The arithmetic shift operations are basically 40-bit operation, that is, the 32 bits of the
In this arithmetic shift operation, all bits of the source 1 and destination operands are activated.
The shift amount is specified by the source 2 operand as an integer data. The source 2 operand can
be specified by either a register or immediate operand. The available shift range is from –32 to
Mnemonic
PSHA Sx, Sy, Dz Arithmetic shift
PSHL Sx, Sy, Dz
PSHA #Imm1, Dz Arithmetic shift with
PSHL #Imm2, Dz Logical shift with
39
Shift out
Shift amount data
(source 2)
32 31
base precision and eight bits of the guard-bit parts. So the signed bit is copied to the guard-
bit parts when a register not providing the guard-bit parts is specified as the source
operand. When a register not providing the guard-bit parts is specified as a destination
operand, the lower 32 bits of the operation result are input into the destination register.
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
Source 2
Imm1
Imm2
Sy
Sy
Rev. 1.00, 02/04, page 129 of 804
Ignored
Right shift
DSR
16 15
GT
Destination
Dz
Dz
Dz
Dz
Z
Shift out
N
0
V DC

Related parts for HD6417660