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).

Details

The crxor instruction performs a bitwise XOR operation between two bits from the Condition Register (CR) specified by BA+32 and BB+32. The result of this operation is then stored in the bit specified by BT+32 in the Condition Register.

Pseudocode Operation

CR[BT] <- CR[BA] XOR 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.

Example

crxor 0, 0, 0

Encoding

Binary Layout
19
0
BT
6
BA
11
BB
16
193
21
/
31
 
Format XL-form
Opcode 0x4C000182
Extension Base
Registers Altered CR

Operands

  • BT
    Target Bit
  • BA
    Source Bit A
  • BB
    Source Bit B