BFCVTN (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector cvt bf16 vector

313029282726252423222120191817161514131211109876543210
0Q00111010100001011010RnRd

0x00111010100001011010xxxxxxxxxx

Decode Sail

if not_bool(HaveBF16Ext()) then {
    throw(Error_Undefined())
};
let 'n = UInt(Rn);
let 'd = UInt(Rd);
let 'part = UInt(Q);
let 'elements = DIV(64, 16);
execute_aarch64_instrs_vector_cvt_bf16_vector(d, elements, n, part)

Operation Sail

CheckFPAdvSIMDEnabled64();
let operand : bits(128) = V_read(n, 128);
result : bits(64) = undefined;
foreach (e from 0 to (elements - 1) by 1 in inc) {
    result = Elem_set(result, e, 16, FPConvertBF__1(Elem_read(operand, e, 32), FPCR_read()))
};
Vpart_set(d, part, 64) = 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.