[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Assembler Language Reference

mcrfs (Move to Condition Register from FPSCR) Instruction

Purpose

Copies the bits from one field of the Floating-Point Status and Control Register into the Condition Register.

Syntax

mcrfs BF,BFA

Description

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

Parameters

BF Specifies target condition register field where result of operation is stored.
BFA Specifies one of the FPSCR fields (0-7).

Examples

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'.

Related Information

Branch Processor.

Interpreting the Contents of a Floating-Point Register.


[ Previous | Next | Contents | Home | Search ]