AESIMC (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector crypto aes mix

313029282726252423222120191817161514131211109876543210
0100111000101000011110RnRd
D

0100111000101000011110xxxxxxxxxx

Decode Sail

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_mix(d, decrypt, n)

Operation Sail

AArch64_CheckFPAdvSIMDEnabled();
let operand : bits(128) = V_read(n, 128);
result : bits(128) = undefined;
if decrypt then {
    result = AESInvMixColumns(operand)
} else {
    result = AESMixColumns(operand)
};
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.