458 Computer Architecture and Organization
Instruction Brief description
SLL R1, S2, DST Shift left logical (32 bits)
SLLX R1, S2, DST Shift left logical extended (64 bits)
SRL R1, S2, DST Shift right logical (32 bits)
SRLX R1, S2, DST Shift right logical extended (64 bits)
SRA R1, S2, DST Shift right arithmetic (32 bits)
SRAX R1, S2, DST Shift right arithmetic extended (64 bits)
Table B.3 Shift and Rotate instructions
Six types of Boolean operations, namely AND, NAND, OR, NOR, XOR and XNOR are available
within Boolean instruction set presented in Table B.4 . In each case the operation may store the generated
conditions of the result if desired so.
Instruction Brief description
AND R1, S2, DST Boolean AND
ANDCC R1, S2, DST Boolean AND and set icc
ANDN R1, S2, DST Boolean NAND
ANDNCC R1, S2, DST Boolean NAND and set icc
OR R1, S2, DST Boolean OR
ORCC R1, S2, DST Boolean OR and set icc
ORN R1, S2, DST Boolean NOR
ORNCC R1, S2, DST Boolean NOR and set icc
XOR R1, S2, DST Boolean XOR
XORCC R1, S2, DST Boolean XOR and set icc
XNOR R1, S2, DST Boolean XNOR
XNORCC R1, S2, DST Boolean XNOR and set icc
Table B.4 Boolean instructions
Table B.5 presents all instructions related with program branching. Note that JMPL instruction may
also be used to implement a CALL instruction.
Instruction Brief description
BPcc ADDR Branch with prediction
BPr SRC, ADDR Branch on register
CALL ADDR Call procedure
RETURN ADDR Return from procedure
JMPL ADDR, DST Jump and link
SAVE R1, S2, DST Advance register windows
(Continued)
Z02_GHOS1557_01_SE_C17_App_B.indd 458Z02_GHOS1557_01_SE_C17_App_B.indd 458 4/29/11 5:40 PM4/29/11 5:40 PM