xsnmsubmsp

VSX Scalar Negative Multiply-Subtract Type-M Single-Precision

xsnmsubmsp

Performs a scalar negative multiply-subtract operation in single-precision floating-point, storing the result using the Type-M (multiplicand) form where the target register provides one of the multiplicand operands.

Details

The xsnmsubmsp instruction multiplies two single-precision floating-point values, subtracts another single-precision value from the product, negates the result, and places the result into the target register. In the Type-M form, the target register (XT) is used as one of the multiplicand operands. The operation is performed in single-precision format as defined by the VSX scalar single-precision arithmetic rules.

Pseudocode Operation

Not available in specification

Programming Note

The xsnmsubmsp instruction is useful for performing complex floating-point calculations involving multiplication, subtraction, and negation in a single operation. Ensure that the target register (XT) is properly aligned and contains valid single-precision floating-point values to avoid undefined behavior. This instruction operates at user privilege level and may raise exceptions if operands are out of range or if there are NaNs involved.

Example

xsnmsubmsp

Encoding

Binary Layout
60
0
XT
6
XA
11
XB
16
1224
21
 
Format XX3-form
Opcode 0xF00004C8
Extension VSX

Operands