aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amomin_d.h
blob: 4f3b6d6e7fb9dc11a59b1ef892478c0e304028d6 (plain)
1
2
3
4
require_xpr64;
sreg_t v = mmu.load_int64(RS1);
mmu.store_uint64(RS1, std::min(sreg_t(RS2),v));
RD = v;