User’s Manual
IBM PowerPC 750GX and 750GL RISC Microprocessor
Integer Logical Instructions
The logical instructions shown in Table
See Appendix F, “Simplified Mnemonics,” in the PowerPC Microprocessor Family: The Programming Environments Manual for simplified mnemonic examples for integer logical operations.
Table
Name | Mnemonic | Syntax | Implementation Notes | |
|
|
|
| |
|
|
|
| |
AND Immediate | andi. | rA,rS,UIMM | — | |
|
|
|
| |
AND Immediate Shifted | andis. | rA,rS,UIMM | — | |
|
|
|
|
|
|
|
|
| The PowerPC Architecture defines ori r0,r0,0 as the pre- |
OR Immediate |
| ori | rA,rS,UIMM | ferred form for the |
| cards this instruction (except for pending trace or | |||
|
|
|
| |
|
|
|
| breakpoint exceptions). |
|
|
|
| |
OR Immediate Shifted | oris | rA,rS,UIMM | — | |
|
|
|
| |
XOR Immediate | xori | rA,rS,UIMM | — | |
|
|
|
| |
XOR Immediate Shifted | xoris | rA,rS,UIMM | — | |
|
|
|
|
|
AND | and | (and.) | rA,rS,rB | — |
|
|
|
|
|
OR | or | (or.) | rA,rS,rB | — |
|
|
|
|
|
XOR | xor | (xor.) | rA,rS,rB | — |
|
|
|
|
|
NAND | nand | (nand.) | rA,rS,rB | — |
|
|
|
|
|
NOR | nor | (nor.) | rA,rS,rB | — |
|
|
|
|
|
Equivalent | eqv | (eqv.) | rA,rS,rB | — |
|
|
|
|
|
AND with Complement | andc | (andc.) | rA,rS,rB | — |
|
|
|
|
|
OR with Complement | orc | (orc.) | rA,rS,rB | — |
|
|
|
|
|
Extend Sign Byte | extsb | (extsb.) | rA,rS | — |
|
|
|
|
|
Extend Sign Half Word | extsh | (extsh.) | rA,rS | — |
|
|
|
|
|
Count Leading Zeros Word | cntlzw | (cntlzw.) | rA,rS | — |
|
|
|
|
|
Integer Rotate Instructions
Rotation operations are performed on data from a GPR, and the result, or a portion of the result, is returned to a GPR. See Appendix F, “Simplified Mnemonics,” in the PowerPC Microprocessor Family: The Programming Environments Manual for a complete list of simplified mnemonics that allows simpler coding of
Integer rotate instructions rotate the contents of a register. The result of the rotation is either inserted into the target register under control of a mask (if a mask bit is 1, the associated bit of the rotated data is placed into the target register, and if the mask bit is 0, the associated bit in the target register is unchanged), or ANDed with a mask before being placed into the target register.
Programming Model | gx_02.fm.(1.2) |
Page 94 of 377 | March 27, 2006 |