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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | Rn | Rd | ||||||||
| D | |||||||||||||||||||||||||||||||
0100111000101000010010xxxxxxxxxx
let 'd = UInt(Rd);
let 'n = UInt(Rn);
if not_bool(HaveAESExt()) then {
throw(Error_Undefined())
};
let decrypt : bool = D == 0b1;
execute_aarch64_instrs_vector_crypto_aes_round(d, decrypt, n)
AArch64_CheckFPAdvSIMDEnabled();
let operand1 : bits(128) = V_read(d, 128);
let operand2 : bits(128) = V_read(n, 128);
result : bits(128) = EOR(operand1, operand2);
if decrypt then {
result = AESInvSubBytes(AESInvShiftRows(result))
} else {
result = AESSubBytes(AESShiftRows(result))
};
V_set(d, 128) = 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.