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 |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | Rm | 1 | Ra | Rn | Rd | ||||||||||||||||
| U | o0 | ||||||||||||||||||||||||||||||
10011011101xxxxx1xxxxxxxxxxxxxxx
let 'd = UInt(Rd); let 'n = UInt(Rn); let 'm = UInt(Rm); let 'a = UInt(Ra); let 'destsize = 64; let 'datasize = 32; let sub_op : bool = o0 == 0b1; let is_unsigned : bool = U == 0b1; execute_aarch64_instrs_integer_arithmetic_mul_widening_32_64(a, d, datasize, destsize, m, n, sub_op, is_unsigned)
let operand1 : bits('datasize) = X_read(n, datasize);
let operand2 : bits('datasize) = X_read(m, datasize);
let operand3 : bits('destsize) = X_read(a, destsize);
result : int = undefined;
if sub_op then {
result = asl_Int(operand3, is_unsigned) - asl_Int(operand1, is_unsigned) * asl_Int(operand2, is_unsigned)
} else {
result = asl_Int(operand3, is_unsigned) + asl_Int(operand1, is_unsigned) * asl_Int(operand2, is_unsigned)
};
let 'result = result;
X_set(d, 64) = result[63 .. 0]
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.