aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amomax_h.h
blob: d91fe1986f0e77d9f8097942ffaf47f20bdbb77e (plain)
1
2
require_extension(EXT_ZABHA);
WRITE_RD(sreg_t(MMU.amo<int16_t>(RS1, [&](int16_t lhs) { return std::max(lhs, int16_t(RS2)); })));