32-Bit Instruction Set

 

LSL

 

Logical Shift Left

Operation:

RA (RA << RB[4..0]), zero-fill from right

Assembler Syntax:

LSL %rA,%rB

Example:

LSL %L3,%g0 ; Shift %L3 left by %g0 bits

Description:

The value in RA is shifted-left by the number of bits indicated by RB [4..0] (bits

 

31..5 of RB are ignored).

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

 

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

A = Register index of RA operand

 

 

 

 

 

 

 

 

 

 

 

 

 

B = Register index of RB operand

 

 

 

 

 

 

 

15

14

13

 

12

11

10

 

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

 

1

1

0

 

 

 

 

 

B

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

32-Bit Instruction Set

Altera Corporation

63

Page 75
Image 75
Excalibur electronic A-MNL-NIOSPROG-01.1 Lsl, Logical Shift Left, LSL %rA,%rB, LSL %L3,%g0 Shift %L3 left by %g0 bits