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 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | sz | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | Rn | Rd | ||||||||
011111100x100001011010xxxxxxxxxx
let 'd = UInt(Rd);
let 'n = UInt(Rn);
if sz == 0b0 then {
throw(Error_Undefined())
};
let 'esize = 32;
let 'datasize = esize;
let 'elements = 1;
let 'part = 0;
execute_aarch64_instrs_vector_arithmetic_unary_float_xtn_sisd(d, datasize, elements, esize, n, part)
| 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 | sz | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | Rn | Rd | ||||||||
0x1011100x100001011010xxxxxxxxxx
let 'd = UInt(Rd);
let 'n = UInt(Rn);
if sz == 0b0 then {
throw(Error_Undefined())
};
let 'esize = 32;
let 'datasize = 64;
let 'elements = 2;
let 'part = UInt(Q);
execute_aarch64_instrs_vector_arithmetic_unary_float_xtn_sisd(d, datasize, elements, esize, n, part)
CheckFPAdvSIMDEnabled64();
let operand : bits(2 * 'datasize) = V_read(n, 2 * datasize);
let fpcr : FPCRType = FPCR_read();
let merge : bool = elements == 1 & IsMerging(fpcr);
result : bits(128) = if merge then V_read(d, 128) else Zeros(128);
foreach (e from 0 to (elements - 1) by 1 in inc) {
result = Elem_set(result, e, esize, FPConvert(Elem_read(operand, e, 2 * esize), fpcr, FPRounding_ODD, esize))
};
if merge then {
V_set(d, 128) = result
} else {
Vpart_set(d, part, datasize) = Elem_read(result, 0, datasize)
}
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.