aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/kwmmul.h
blob: ca654f2f718a662a858a767ba18e5f41691ca5ef (plain)
1
2
3
4
5
6
7
8
9
10
require_vector_vs;
P_LOOP(32, {
  if ((INT32_MIN != ps1) | (INT32_MIN != ps2)) {
    int64_t mres = ((int64_t) ps1 * (int64_t) ps2) << 1;
    pd = mres >> 32;
  } else {
    pd = INT32_MAX;
    P_SET_OV(1);
  }
})