mtfsfi
Move To FPSCR Field Immediate
mtfsfi BF, U
Writes a 4-bit immediate to a specific FPSCR field.
Details
The mtfsfi instruction moves an immediate value into a specified field in the Floating-Point Status and Control Register (FPSCR). This allows for direct manipulation of specific exception bits or control settings within the FPSCR.
Pseudocode Operation
// Writes a 4-bit immediate to a specific FPSCR field
Programming Note
Use mtfsfi to directly manipulate specific fields in the FPSCR, such as enabling or disabling exceptions. Ensure the immediate value fits within the specified field size to avoid undefined behavior. This instruction operates at user privilege level and does not generate exceptions for valid immediate values.
Example
mtfsfi cr0, 0
Encoding
Binary Layout
63
0
BF
6
/
11
U
16
134
21
/
31
Operands
-
BF
Field Index -
U
Immediate