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