FMOPA (widening, 2-way, FP8 to FP16)

8-bit floating-point sum of outer products to half-precision, accumulating

This instruction works with a 16-bit element ZA tile.

This instruction widens the SVLH×2 sub-matrix of 8-bit floating-point values held in the first source vector to half-precision values and multiplies it by the widened 2×SVLH sub-matrix of 8-bit floating-point values in the second source vector to half-precision values.

Each source vector is independently predicated by a corresponding governing predicate. When a 8-bit source element is Inactive it is treated as having the value +0.0, but if both groups of source vector elements that correspond to a 16-bit destination element contain Inactive elements, then the destination element remains unmodified.

The resulting SVLH×SVLH half-precision sum of outer products are scaled by 2-UInt(FPMR.LSCALE[3:0]), before being destructively added to the half-precision destination tile. This is equivalent to performing a downscaled 2-way dot product and accumulate to each of the destination tile elements.

Each 16-bit container of the first source vector holds 2 consecutive column elements of each row of a SVLH×2 sub-matrix. Similarly, each 16-bit container of the second source vector holds 2 consecutive row elements of each column of a 2×SVLH sub-matrix.

The 8-bit floating-point encoding format for the elements of the first source vector and the second source vector is selected by FPMR.F8S1 and FPMR.F8S2 respectively.

SME2
(FEAT_SME_F8F16)

313029282726252423222120191817161514131211109876543210
10000000101ZmPmPnZn0100ZAda

Encoding

FMOPA <ZAda>.H, <Pn>/M, <Pm>/M, <Zn>.B, <Zm>.B

Decode for this encoding

if !IsFeatureImplemented(FEAT_SME_F8F16) then EndOfDecode(Decode_UNDEF); end; let a : integer = UInt(Pn); let b : integer = UInt(Pm); let n : integer = UInt(Zn); let m : integer = UInt(Zm); let da : integer = UInt(ZAda);

Assembler Symbols

<ZAda>

Is the name of the ZA tile ZA0-ZA1, encoded in the "ZAda" field.

<Pn>

Is the name of the first governing scalable predicate register P0-P7, encoded in the "Pn" field.

<Pm>

Is the name of the second governing scalable predicate register P0-P7, encoded in the "Pm" field.

<Zn>

Is the name of the first source scalable vector register, encoded in the "Zn" field.

<Zm>

Is the name of the second source scalable vector register, encoded in the "Zm" field.

Operation

CheckFPMREnabled(); CheckStreamingSVEAndZAEnabled(); let VL : integer{} = CurrentVL(); let PL : integer{} = VL DIV 8; let dim : integer{} = VL DIV 16; let mask1 : bits(PL) = P{}(a); let mask2 : bits(PL) = P{}(b); let operand1 : bits(VL) = Z{}(n); let operand2 : bits(VL) = Z{}(m); let operand3 : bits(dim*dim*16) = ZAtile{}(da, 16); var result : bits(dim*dim*16); for row = 0 to dim-1 do for col = 0 to dim-1 do var prow : array [[2]] of boolean; var pcol : array [[2]] of boolean; var any_active : boolean = FALSE; for i = 0 to 1 do prow[[i]] = ActivePredicateElement{PL}(mask1, 2*row + i, 8); pcol[[i]] = ActivePredicateElement{PL}(mask2, 2*col + i, 8); any_active = any_active || (prow[[i]] && pcol[[i]]); end; if any_active then var sum : bits(16) = operand3[(row*dim+col)*:16]; var rowop : bits(16) = Zeros{}; var colop : bits(16) = Zeros{}; for i = 0 to 1 do if prow[[i]] then rowop[i*:8] = operand1[(2*row + i)*:8]; end; if pcol[[i]] then colop[i*:8] = operand2[(2*col + i)*:8]; end; end; sum = FP8DotAddFP{16, 16}(sum, rowop, colop, FPCR(), FPMR()); result[(row*dim+col)*:16] = sum; else result[(row*dim+col)*:16] = operand3[(row*dim+col)*:16]; end; end; end; ZAtile{dim*dim*16}(da, 16) = result;


2026-03_rel 2026-03-26 20:48:11

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