FCVTN (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector arithmetic unary float narrow

313029282726252423222120191817161514131211109876543210
0Q0011100sz100001011010RnRd

0x0011100x100001011010xxxxxxxxxx

Decode Sail

let 'd = UInt(Rd);
let 'n = UInt(Rn);
let 'esize = (16 << UInt(sz));
let 'datasize = 64;
let 'part = UInt(Q);
let 'elements = DIV(datasize, esize);
assert(constraint('esize in {16, 32}));
execute_aarch64_instrs_vector_arithmetic_unary_float_narrow(d, datasize, elements, esize, n, part)

Operation Sail

CheckFPAdvSIMDEnabled64();
let operand : bits(2 * 'datasize) = V_read(n, 2 * datasize);
result : bits('datasize) = undefined;
foreach (e from 0 to (elements - 1) by 1 in inc) {
    result = Elem_set(result, e, esize, FPConvert__1(Elem_read(operand, e, 2 * esize), FPCR_read(), esize))
};
Vpart_set(d, part, datasize) = 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.