| |||

Home > VFP Programming > VFP instructions > VMUL, VMLA, VMLS, VNMUL, VNMLA, and VNMLS |

Floating-point multiply and multiply accumulate, with optional negation.

These instructions can be scalar, vector, or mixed.

V{N}MUL{}.F32 {`cond`

,}`Sd`

,`Sn`

`Sm`

V{N}`MUL`

{}.F64 {`cond`

,}`Dd`

,`Dn`

`Dm`

V{N}MLA{}.F32`cond`

,`Sd`

,`Sn`

`Sm`

V{N}MLA{}.F64`cond`

,`Dd`

,`Dn`

`Dm`

V{N}MLS{}.F32`cond`

,`Sd`

,`Sn`

`Sm`

V{N}`MLS`

{}.F64`cond`

,`Dd`

,`Dn`

`Dm`

where:

`N`

negates the final result.

`cond`

is an optional condition code.

,`Sd`

,`Sn`

`Sm`

are the single-precision registers for the result and operands.

,`Dd`

,`Dn`

`Dm`

are the double-precision registers for the result and operands.

The `VMUL`

operation multiplies the values in the
operand registers and places the result in the destination register.

The `VMLA`

operation multiplies the values in the
operand registers, adds the value in the destination register, and
places the final result in the destination register.

The `VMLS`

operation multiplies the values in the
operand registers, subtracts the result from the value in the destination
register, and places the final result in the destination register.

In each case, the final result is negated if the `N`

option
is used.

These instructions can produce Invalid Operation, Overflow, Underflow, Inexact, or Input Denormal exceptions.

- Concepts
*Using the Assembler*:- Reference: