Copies the bits from one field of the Floating-Point Status and Control Register into the Condition Register.
mcrfs | BF,BFA |
The mcrfs instruction copies four bits of the Floating-Point Status and Control Register (FPSCR) specified by BFA into Condition Register Field BF. All other Condition Register bits are unchanged.
If the field specified by BFA contains reserved or undefined bits, then bits of zero value are supplied for the copy.
The mcrfs instruction has one syntax form and can set the bits of the Floating-Point Status and Control Register.
BFA | FPSCR bits set |
---|---|
0 | FX,OX |
1 | UX, ZX, XX, VXSNAN |
2 | VXISI, VXIDI, VXZDZ, VXIMZ |
3 | VXVC |
BF | Specifies target condition register field where result of operation is stored. |
BFA | Specifies one of the FPSCR fields (0-7). |
The following code copies bits from Floating-Point Status and Control Register Field 4 into Condition Register Field 3:
# Assume FPSCR 4 contains b'0111'. mcrfs 3,4 # Condition Register Field 3 contains b'0111'.
Interpreting the Contents of a Floating-Point Register .