Data processing (scalar floating-point and Advanced SIMD)
fixed bit field field the encoding fixes should be
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 0 | Q | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | Rm | 0 | imm4 | 0 | Rn | Rd | |||||||||||||||
0x101110000xxxxx0xxxx0xxxxxxxxxx
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)
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.