mcrxrx

Move to Condition Register from XER Extended

mcrxrx BF

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

mcrxrx cr0

Encoding

Binary Layout
0
0
BF
6
//
11
RS
16
FXM
//
 
Format X-form
Opcode 0x7C000400
Extension Base
Registers Altered CR, XER

Operands

  • BF
    Target CR Field
  • RS
    Source General Purpose Register