SHA512SU0 (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector crypto sha512 sha512su0

313029282726252423222120191817161514131211109876543210
1100111011000000100000RnRd

1100111011000000100000xxxxxxxxxx

Decode Sail

if not_bool(HaveSHA512Ext()) then {
    throw(Error_Undefined())
};
let 'd = UInt(Rd);
let 'n = UInt(Rn);
execute_aarch64_instrs_vector_crypto_sha512_sha512su0(d, n)

Operation Sail

AArch64_CheckFPAdvSIMDEnabled();
Vtmp : bits(128) = undefined;
let x : bits(128) = V_read(n, 128);
let w : bits(128) = V_read(d, 128);
sig0 : bits(64) = EOR(EOR(ROR(w[127 .. 64], 1), ROR(w[127 .. 64], 8)), 0b0000000 @ w[127 .. 71]);
Vtmp[63 .. 0] = w[63 .. 0] + sig0;
let sig0 : bits(64) = EOR(EOR(ROR(x[63 .. 0], 1), ROR(x[63 .. 0], 8)), 0b0000000 @ x[63 .. 7]);
Vtmp[127 .. 64] = w[127 .. 64] + sig0;
V_set(d, 128) = Vtmp

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.