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 />

Condition Register NOR<br />

XL-form<br />

Condition Register Equivalent<br />

XL-form<br />

crnor<br />

BT,BA,BB<br />

creqv<br />

BT,BA,BB<br />

19 BT BA BB 33 /<br />

0 6 11 16 21 31<br />

19 BT BA BB 289 /<br />

0 6 11 16 21 31<br />

CR BT+32 ¬(CR BA+32 | CR BB+32 )<br />

The bit in the Condition Register specified by BA+32 is<br />

ORed with the bit in the Condition Register specified by<br />

BB+32, and the complemented result is placed into the<br />

bit in the Condition Register specified by BT+32.<br />

Special Registers Altered:<br />

CR BT+32<br />

Extended Mnemonics:<br />

Example of extended mnemonics for Condition Register<br />

NOR:<br />

CR BT+32 CR BA+32 ≡ CR BB+32<br />

The bit in the Condition Register specified by BA+32 is<br />

XORed with the bit in the Condition Register specified<br />

by BB+32, and the complemented result is placed into<br />

the bit in the Condition Register specified by BT+32.<br />

Special Registers Altered:<br />

CR BT+32<br />

Extended Mnemonics:<br />

Example of extended mnemonics for Condition Register<br />

Equivalent:<br />

Extended:<br />

crnot Bx,By<br />

Equivalent to:<br />

crnor Bx,By,By<br />

Extended:<br />

crset Bx<br />

Equivalent to:<br />

creqv Bx,Bx,Bx<br />

Condition Register AND with Complement<br />

XL-form<br />

Condition Register OR with Complement<br />

XL-form<br />

crandc<br />

BT,BA,BB<br />

crorc<br />

BT,BA,BB<br />

19 BT BA BB 129 /<br />

0 6 11 16 21 31<br />

19 BT BA BB 417 /<br />

0 6 11 16 21 31<br />

CR BT+32 CR BA+32 & ¬CR BB+32<br />

The bit in the Condition Register specified by BA+32 is<br />

ANDed with the complement of the bit in the Condition<br />

Register specified by BB+32, and the result is placed<br />

into the bit in the Condition Register specified by<br />

BT+32.<br />

Special Registers Altered:<br />

CR BT+32<br />

CR BT+32 CR BA+32 | ¬CR BB+32<br />

The bit in the Condition Register specified by BA+32 is<br />

ORed with the complement of the bit in the Condition<br />

Register specified by BB+32, and the result is placed<br />

into the bit in the Condition Register specified by<br />

BT+32.<br />

Special Registers Altered:<br />

CR BT+32<br />

2.5.2 Condition Register Field Instruction<br />

Move Condition Register Field<br />

XL-form<br />

mcrf<br />

BF,BFA<br />

19 BF // BFA // /// 0 /<br />

0 6 9 11 14 16 21 31<br />

CR 4×BF+32:4×BF+35 CR 4×BFA+32:4×BFA+35<br />

The contents of Condition Register field BFA are copied<br />

to Condition Register field BF.<br />

Special Registers Altered:<br />

CR field BF<br />

32<br />

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

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

Saved successfully!

Ooh no, something went wrong!