SHA256SU0 (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector crypto sha2op sha256 sched0

313029282726252423222120191817161514131211109876543210
0101111000101000001010RnRd

0101111000101000001010xxxxxxxxxx

Decode Sail

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

Operation Sail

AArch64_CheckFPAdvSIMDEnabled();
let operand1 : bits(128) = V_read(d, 128);
let operand2 : bits(128) = V_read(n, 128);
result : bits(128) = undefined;
let T : bits(128) = operand2[31 .. 0] @ operand1[127 .. 32];
elt : bits(32) = undefined;
foreach (e from 0 to 3 by 1 in inc) {
    elt = Elem_read(T, e, 32);
    elt = EOR(EOR(ROR(elt, 7), ROR(elt, 18)), LSR(elt, 3));
    result = Elem_set(result, e, 32, elt + Elem_read(operand1, e, 32))
};
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.