aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/sha512sum0r.h
blob: cb6c636f232f3a585cf42081e2abedbc817820b2 (plain)
1
2
3
4
5
6
7
8
9

require_rv32;
require_extension(EXT_ZKNH);

reg_t result =
    (zext32(RS1) << 25) ^ (zext32(RS1) << 30) ^ (zext32(RS1) >> 28) ^
    (zext32(RS2) >>  7) ^ (zext32(RS2) >>  2) ^ (zext32(RS2) <<  4);

WRITE_RD(sext_xlen(result));