aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/kabs16.h
blob: 8d1d9b83fbe93267fe71689595d1f3c15ef75f4e (plain)
1
2
3
4
5
6
7
8
9
10
require_vector_vs;
P_ONE_LOOP(16, {
  pd = ps1;
  if (ps1 == INT16_MIN) {
    pd = INT16_MAX;
    P_SET_OV(1);
  } else if (ps1 < 0) {
    pd = - ps1;
  }
})