aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amomin_w.h
blob: 28efa15e42f9bdea91a744fba8b85c96322b623d (plain)
1
2
3
int32_t v = MMU.load_int32(RS1);
MMU.store_uint32(RS1, std::min(int32_t(RS2),v));
WRITE_RD(v);