Instructions by Category B-37
B.7 Condition Register Logical Instructions
CR logical instructions combine the results of several comparisons without incurring the overhead of
conditional branching. These instructions can significantly improve code performance if multiple
conditions are tested before making a branch decision. Table B-8 summarizes the CR logical
instructions.
Table B-8. Condition Register Logical Instructions
Mnemonic Operands Function
Other Registers
Changed Page
crand BT, BA, BB AND bit (CR
BA
) with (CR
BB
).
Place result in CR
BT
.
9-39
crandc BT, BA, BB AND bit (CR
BA
) with ¬(CR
BB
).
Place result in CR
BT
.
9-40
creqv BT, BA, BB Equivalence of bit CR
BA
with CR
BB
.
CR
BT
←¬(CR
BA
⊕ CR
BB
)
9-41
crnand BT, BA, BB NAND bit (CR
BA
) with (CR
BB
).
Place result in CR
BT
.
9-42
crnor BT, BA, BB NOR bit (CR
BA
) with (CR
BB
).
Place result in CR
BT
.
9-43
cror BT, BA, BB OR bit (CR
BA
) with (CR
BB
).
Place result in CR
BT
.
9-44
crorc BT, BA, BB OR bit (CR
BA
) with ¬ (CR
BB
).
Place result in CR
BT
.
9-45
crxor BT, BA, BB XOR bit (CR
BA
) with (CR
BB
).
Place result in CR
BT
.
9-46
mcrf BF, BFA Move CR field, (CR[CRn])
← (CR[CRm])
where m
← BFA and n ← BF.
9-107