cror
Condition Register OR
cror BT, BA, BB
Performs a bitwise OR between two bits in the Condition Register.
Encoding
Binary Layout
19
0:5
BT
6:10
BA
11:15
BB
16:20
449
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 OR of CR bit BA and CR bit BB, storing the result in CR bit BT. This instruction operates only on the Condition Register and is commonly used in conditional branch sequences.
Operation
CR[BT] ← CR[BA] | CR[BB]
Programming Note
The cror instruction is commonly used to combine condition flags from different parts of the Condition Register (CR) for conditional branching or logical operations. Ensure that the BA, BB, and BT fields correctly specify the bits you intend to OR; otherwise, it may lead to incorrect results. This instruction operates at user privilege level and does not generate exceptions under normal circumstances.