aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/kmmawb.h
blob: 0e3a6944d51cf02277d775a9528f5290c7531566 (plain)
1
2
3
4
5
6
7
require_vector_vs;
P_LOOP(32, {
  int64_t mres = (int64_t)ps1 * P_SH(ps2, 0);
  bool sat = false;
  pd = (sat_add<int32_t, uint32_t>(pd, (mres >> 16), sat));
  P_SET_OV(sat);
})