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