crxor
Condition Register XOR
crxor BT, BA, BB
Performs a bitwise XOR between two bits in the Condition Register. Used to clear CR bits (crxor x,x,x).
Encoding
Binary Layout
19
0:5
BT
6:10
BA
11:15
BB
16:20
193
21:30
/
31
Operands
-
BT
Target Bit -
BA
Source Bit A -
BB
Source Bit B
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Performs a bitwise XOR of CR bit BA and CR bit BB, storing the result in CR bit BT. When BA and BB are the same bit, this effectively clears CR[BT]; this form is frequently used for clearing condition register fields.
Operation
CR[BT] ← CR[BA] ^ CR[BB]
Programming Note
The crxor instruction is used to perform a bitwise XOR operation between two condition register bits and store the result in another condition register bit. Ensure that the BA, BB, and BT fields are correctly set to avoid unintended behavior. This instruction operates at the problem state privilege level.