14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Version</strong> <strong>2.03</strong><br />

5.9 Fixed-Point Logical, Bit, and Move Instructions<br />

The Logical instructions perform bit-parallel operations<br />

on 64-bit operands. The Bit instructions manipulate a<br />

bit, or create a bit mask, in a register. The Move instructions<br />

move a register or an immediate value into a register.<br />

The X-form Logical instructions with Rc=1, the SCI8-<br />

form Logical instructions with Rc=1, the RR-form Logical<br />

instructions with Rc=1, the e_and2i. instruction,<br />

and the e_and2is. instruction set the first three bits of<br />

CR field 0 as the arithmetic instructions described in<br />

Section 5.5, “Fixed-Point Arithmetic Instructions”. (Also<br />

see Section 4.1.1.) The Logical instructions do not<br />

change the SO, OV, and CA bits in the XER.<br />

The fixed-point Logical instructions from Book I, and[.],<br />

or[.], xor[.], nand[.], nor[.], eqv[.], andc[.], orc[.],<br />

extsb[.], extsh[.], cntlzw[.], and popcntb are available<br />

while executing in VLE mode. The mnemonics,<br />

decoding, and semantics for these instructions are<br />

identical to those in Book I; see Section 3.3.12 of Book<br />

I for the instruction definitions.<br />

The fixed-point Logical instructions from Book I,<br />

extsw[.] and cntlzd[.] are available while executing in<br />

VLE mode on 64-bit implementations. The mnemonics,<br />

decoding, and semantics for these instructions are<br />

identical to those in Book I; see Section 3.3.12 of Book<br />

I for the instruction definitions.<br />

AND (two operand) Immediate I16L-form AND (2 operand) Immediate Shifted<br />

I16L-form<br />

e_and2i. RT,ui<br />

e_and2is. RT,ui<br />

28 RT ui 25 ui<br />

0 6 11 16 21 31 28 RT ui 29 ui<br />

RT (RT) & ( 48 0 || ui)<br />

The contents of register RT are ANDed with 48 0 || ui<br />

and the result is placed into register RT.<br />

Special Registers Altered:<br />

CR0<br />

0 6 11 16 21 31<br />

RT (RT) & ( 32 0 || ui || 16 0)<br />

The contents of register RT are ANDed with 32 0 || ui ||<br />

16 0 and the result is placed into register RT.<br />

Special Registers Altered:<br />

CR0<br />

AND Scaled Immediate Carrying<br />

SCI8-form<br />

e_andi RA,RS,sci8 (Rc=0)<br />

e_andi. RA,RS,sci8 (Rc=1)<br />

06 RS RA 12 Rc F SCL UI8<br />

0 6 11 16 20 21 22 24 31<br />

sci8 56-SCL×8 F || UI8 || SCL×8 F<br />

RA (RS) & sci8<br />

The contents of register RS are ANDed with sci8 and<br />

the result is placed into register RA.<br />

Special Registers Altered:<br />

CR0<br />

(if Rc=1)<br />

AND Immediate Short Form<br />

se_andi<br />

RX,UI5<br />

11 1 UI5 RX<br />

0 6 7 12 15<br />

RX (RX) & 59 0 || UI5<br />

IM5-form<br />

The contents of register RX are ANDed with 59 0 || UI5<br />

and the result is placed into register RX.<br />

Special Registers Altered:<br />

None<br />

680<br />

<strong>Power</strong> ISA -- Book VLE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!