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