EXT (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector transfer vector extract

313029282726252423222120191817161514131211109876543210
0Q101110000Rm0imm40RnRd

0x101110000xxxxx0xxxx0xxxxxxxxxx

Decode Sail

let 'd = UInt(Rd);
let 'n = UInt(Rn);
let 'm = UInt(Rm);
if Q == 0b0 & [imm4[3]] == 0b1 then {
    throw(Error_Undefined())
};
let 'datasize = if Q == 0b1 then 128 else 64;
let 'position = (UInt(imm4) << 3);
execute_aarch64_instrs_vector_transfer_vector_extract(d, datasize, m, n, position)

Operation Sail

CheckFPAdvSIMDEnabled64();
let hi : bits('datasize) = V_read(m, datasize);
let lo : bits('datasize) = V_read(n, datasize);
let concat : bits('datasize * 2) = hi @ lo;
assert(constraint((0 <= 'position & 'position + 'datasize - 1 < 'datasize * 2)));
V_set(d, datasize) = concat[position + datasize - 1 .. position]

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.