SHA1SU1 (vector)

Data processing (scalar floating-point and Advanced SIMD)

fixed bit field field the encoding fixes should be

Vector crypto sha2op sha1 sched1

313029282726252423222120191817161514131211109876543210
0101111000101000000110RnRd

0101111000101000000110xxxxxxxxxx

Decode Sail

let 'd = UInt(Rd);
let 'n = UInt(Rn);
if not_bool(HaveSHA1Ext()) then {
    throw(Error_Undefined())
};
execute_aarch64_instrs_vector_crypto_sha2op_sha1_sched1(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) = EOR(operand1, LSR(operand2, 32));
result[31 .. 0] = ROL(T[31 .. 0], 1);
result[63 .. 32] = ROL(T[63 .. 32], 1);
result[95 .. 64] = ROL(T[95 .. 64], 1);
result[127 .. 96] = EOR(ROL(T[127 .. 96], 1), ROL(T[31 .. 0], 2));
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.