BFCVT (scalar)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector cvt bf16 scalar

313029282726252423222120191817161514131211109876543210
0001111001100011010000RnRd

0001111001100011010000xxxxxxxxxx

Decode Sail

if not_bool(HaveBF16Ext()) then {
    throw(Error_Undefined())
};
let 'n = UInt(Rn);
let 'd = UInt(Rd);
execute_aarch64_instrs_vector_cvt_bf16_scalar(d, n)

Operation Sail

CheckFPEnabled64();
let operand : bits(32) = V_read(n, 32);
let fpcr : FPCRType = FPCR_read();
let merge : bool = IsMerging(fpcr);
result : bits(128) = if merge then V_read(d, 128) else Zeros(128);
result = Elem_set(result, 0, 16, FPConvertBF__1(operand, fpcr));
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.