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

require_rv32;
require_extension(EXT_ZKNH);

reg_t result =
    (zext32(RS1) >>  1) ^ (zext32(RS1) >>  7) ^ (zext32(RS1) >>  8) ^
    (zext32(RS2) << 31) ^ (zext32(RS2) << 25) ^ (zext32(RS2) << 24);

WRITE_RD(sext_xlen(result));