BFMLAL (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector arithmetic binary uniform mul acc bf16 long

313029282726252423222120191817161514131211109876543210
0Q101110110Rm111111RnRd

0x101110110xxxxx111111xxxxxxxxxx

Decode Sail

if not_bool(HaveBF16Ext()) then {
    throw(Error_Undefined())
};
let 'd = UInt(Rd);
let 'n = UInt(Rn);
let 'm = UInt(Rm);
let 'elements = DIV(128, 32);
let 'sel = UInt(Q);
execute_aarch64_instrs_vector_arithmetic_binary_uniform_mul_acc_bf16_long(d, elements, m, n, sel)

Operation Sail

CheckFPAdvSIMDEnabled64();
let operand1 : bits(128) = V_read(n, 128);
let operand2 : bits(128) = V_read(m, 128);
let operand3 : bits(128) = V_read(d, 128);
result : bits(128) = undefined;
foreach (e from 0 to (elements - 1) by 1 in inc) {
    let element1 : bits(16) = Elem_read(operand1, 2 * e + sel, 16);
    let element2 : bits(16) = Elem_read(operand2, 2 * e + sel, 16);
    let addend : bits(32) = Elem_read(operand3, e, 32);
    result = Elem_set(result, e, 32, BFMulAddH(addend, element1, element2, FPCR_read()))
};
V_set(d, 128) = result

Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.