xsmaddmsp
VSX Scalar Multiply-Add Type-M Single-Precision
Multiplies two single-precision floating-point values and adds a third, storing the result in the target register (Type-M form).
Details
Performs a scalar single-precision floating-point multiply-add operation (Type-M form) using VSX registers, computing FRB × FRC + FRT and storing the result in FRT. The Type-M form provides additional semantics for rounding and exception handling in VSX scalar operations.
Pseudocode Operation
FRT ← FRT + (FRB × FRC)
Programming Note
The xsmaddmsp instruction is commonly used for efficient scalar floating-point arithmetic operations, particularly in applications requiring high performance and precision. Ensure that the input registers are properly aligned to avoid potential exceptions. This instruction operates at a privilege level that allows it to be executed by user-mode programs, making it accessible for general-purpose computations. Be aware of the FPSCR register's impact on rounding modes and exception flags.
Example
Encoding
Operands
-
FRT
Target Floating Point Register -
FRB
Source Floating Point Register -
FRC
Source Floating Point Register