aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vsaddu_vv.h
blob: e5d7025f054700d0752bba6618f0cd0753fddd4e (plain)
1
2
3
4
5
6
7
8
9
10
11
// vsaddu vd, vs2, vs1
VI_VV_ULOOP
({
  bool sat = false;
  vd = vs2 + vs1;

  sat = vd < vs2;
  vd |= -(vd < vs2);

  P.VU.vxsat |= sat;
})