35.3.3.2. INTEGER SHIFT/ROTATES ON ALPHA




Alpha Operate Format
+-------------------------+------------------------+
| 31..26	Opcode	  | 31..26	Opcode	   |
| 25..21	Ra	  | 25..21	Ra	   |
| 20..16	Rb	  | 20..13	LIT        |
| 15..13	SBZ	  | 12		1          |
| 12		0	  | 11..5	Function   |	
| 11..5		Function  | 4..0	Rc         |
| 4..0		Rc        |                        |
+-------------------------+------------------------+


Shift	Logical Left
	SLL	Ra.rq,Rb.rq,Rc.wq	!Operate Format
	SLL	Ra.rq,#b.ib,Rc.wq	!Operate Format

	Rc <- LEFT_SHIFT(Rav, Rbv<5:0>)


Shift	Logical Right
	SRL	Ra.rq,Rb.rq,Rc.wq	!Operate Format
	SRL	Ra.rq,#b.ib,Rc.wq	!Operate Format

	Rc <- RIGHT_SHIFT(Rav, Rbv<5:0>)


Shift	Arithmetic
	SRA	Ra.rq,Rb.rq,Rc.wq	!Operate Format
	SRA	Ra.rq,#b.ib,Rc.wq	!Operate Format

	Rc <- ARITH_RIGHT_SHIFT(Rav, Rbv<5:0>)



	SLL	12.39
	SRL	12.34
	SRA	12.3C


// ----------------------------------------------------------------------


Index Prev Next