Does SHA512SUM0R use floating-point or vector registers?
No. These scalar crypto extension instructions use integer X registers.
SHA-512 Sum0: two RV32 source words produce one 32-bit result word
Syntax is sha512sum0r rd, rs1, rs2; operands select integer x0–x31 or ABI names, with no assembly immediate.
32-bit OP: funct7=0101000, funct3=000, opcode=0110011.
RV32 Zknh only (also in Zkn/Zk); each instruction computes one 32-bit result word. Preserve the original inputs and reverse source order for the second instruction of the full Sum transform.
An x0 source is zero and writes to x0 are discarded; overlap reads values before writeback and equal sources share one value. Execution latency must be data-independent.
sha512sum0r is defined only for RV32. It applies the official formula to the 32-bit X(rs1) and X(rs2) values to compute one SHA2-512 Sum0 result word; the documented two-instruction sequence reverses the source-register order for its second instruction.
Applies the official RV32 formula for one SHA-512 Sum result word.
XLEN is fixed at 32. This instruction reads rs1 and rs2 exactly as shown; the official two-instruction sequence reverses the source-register order for its second instruction. Initially rd shares an overlapping source value, otherwise it starts at 0. An x0 source must be 0; identical sources must share one value.
This animation shows only official ISA fields and architectural state; it does not model a complete hash algorithm or microarchitecture.
sha512sum0r computes SHA-512 Sum0 as one RV32 result word; reverse the source registers for the other word.
RV32 Zknh, a0=1 and a1=0; preserve both sources and reverse their order in the second instruction. t0=0x42000000, t1=0x00000010.
RV32 Zknh, a0=1 and a1=0; preserve both sources and reverse their order in the second instruction. t0=0x42000000, t1=0x00000010.
No. These scalar crypto extension instructions use integer X registers.
No. It computes one RV32 result word of SHA2-512 Sum0; the manual's second instruction reverses the source-register order.