mcrxrx
Move to Condition Register from XER Extended
Copies the contents of the XER register fields OV, OV32, CA, and CA32 to the specified condition register field.
Details
The contents of the OV, OV32, CA, and CA32 are copied to Condition Register field BF. The contents of bits 32:63 of register RS are placed into the Condition Register under control of the field mask specified by FXM.
Pseudocode Operation
mask ←4(FXM0) || 4(FXM1) || ... 4(FXM7)
CR ←((RS)32:63 & mask) | (CR & ¬mask)
Programming Note
The mcrxrx instruction is used to transfer specific bits from the XER register into the Condition Register. Ensure that the FXM field correctly specifies which bits of RS should be moved to CR, as incorrect masking can lead to unexpected results. This instruction operates at user privilege level and does not generate exceptions under normal conditions.
Example
Encoding
Operands
-
BF
Target CR Field -
RS
Source General Purpose Register