VFMSL (vector)

Vector Floating-point Multiply-Subtract Long from accumulator (vector). This instruction negates the values in the vector of one SIMD&FP register, multiplies these with the corresponding values in another vector, and accumulates the product to the corresponding vector element of the destination SIMD&FP register. The instruction does not round the result of the multiply before the accumulation.

Depending on settings in the CPACR, NSACR, HCPTR, and FPEXC registers, and the Security state and PE mode in which the instruction is executed, an attempt to execute the instruction might be undefined, or trapped to Hyp mode. For more information see Enabling Advanced SIMD and floating-point support.

In Armv8.2 and Armv8.3, this is an optional instruction. From Armv8.4 it is mandatory for all implementations to support it.


Note

ID_ISAR6.FHM indicates whether this instruction is supported.


It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 ) .

A1
(FEAT_FHM)

313029282726252423222120191817161514131211109876543210
111111001D10VnVd1000NQM1Vm
S

Encoding for the 64-bit SIMD vector variant

Applies when (Q == 0)

VFMSL{<q>}.F16 <Dd>, <Sn>, <Sm>

Encoding for the 128-bit SIMD vector variant

Applies when (Q == 1)

VFMSL{<q>}.F16 <Qd>, <Dn>, <Dm>

Decode for all variants of this encoding

if !IsFeatureImplemented(FEAT_FHM) then UNDEFINED; if Q == '1' && Vd<0> == '1' then UNDEFINED; constant integer d = UInt(D:Vd); constant integer n = if Q == '1' then UInt(N:Vn) else UInt(Vn:N); constant integer m = if Q == '1' then UInt(M:Vm) else UInt(Vm:M); constant integer esize = 32; constant integer datasize = 32 << UInt(Q); constant boolean sub_op = S == '1'; constant integer regs = if Q == '0' then 1 else 2;

T1
(FEAT_FHM)

15141312111098765432101514131211109876543210
111111001D10VnVd1000NQM1Vm
S

Encoding for the 64-bit SIMD vector variant

Applies when (Q == 0)

VFMSL{<q>}.F16 <Dd>, <Sn>, <Sm>

Encoding for the 128-bit SIMD vector variant

Applies when (Q == 1)

VFMSL{<q>}.F16 <Qd>, <Dn>, <Dm>

Decode for all variants of this encoding

if InITBlock() then UNPREDICTABLE; if !IsFeatureImplemented(FEAT_FHM) then UNDEFINED; if Q == '1' && Vd<0> == '1' then UNDEFINED; constant integer d = UInt(D:Vd); constant integer n = if Q == '1' then UInt(N:Vn) else UInt(Vn:N); constant integer m = if Q == '1' then UInt(M:Vm) else UInt(Vm:M); constant integer esize = 32; constant integer regs = 1 << UInt(Q); constant integer datasize = 32 << UInt(Q); constant boolean sub_op = S == '1';

Assembler Symbols

<q>

See Standard assembler syntax fields.

<Qd>

Is the 128-bit name of the SIMD&FP destination register, encoded in the "D:Vd" field as <Qd>*2.

<Dn>

Is the 64-bit name of the first SIMD&FP source register, encoded in the "N:Vn" field.

<Dm>

Is the 64-bit name of the second SIMD&FP source register, encoded in the "M:Vm" field.

<Dd>

Is the 64-bit name of the SIMD&FP destination register, encoded in the "D:Vd" field.

<Sn>

Is the 32-bit name of the first SIMD&FP source register, encoded in the "Vn:N" field.

<Sm>

Is the 32-bit name of the second SIMD&FP source register, encoded in the "Vm:M" field.

Operation

CheckAdvSIMDEnabled(); constant FPCR_Type fpcr = StandardFPCR(); bits(datasize) operand1; bits(datasize) operand2; bits(64) operand3; bits(64) result; bits(esize DIV 2) element1; bits(esize DIV 2) element2; if Q=='0' then operand1 = S[n]<datasize-1:0>; operand2 = S[m]<datasize-1:0>; else operand1 = D[n]<datasize-1:0>; operand2 = D[m]<datasize-1:0>; for r = 0 to regs-1 operand3 = D[d+r]; for e = 0 to 1 element1 = Elem[operand1, 2*r+e, esize DIV 2]; element2 = Elem[operand2, 2*r+e, esize DIV 2]; if sub_op then element1 = FPNeg(element1, fpcr); Elem[result, e, esize] = FPMulAddH(Elem[operand3, e, esize], element1, element2, fpcr); D[d+r] = result;


Internal version only: isa v01_32, pseudocode v2024-12_rel ; Build timestamp: 2024-12-16T10:54

Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.