aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/ukcrsa32.h
blob: 260f181e653034afb8d87eb38594337697a68b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
require_vector_vs;
require_rv64;
P_CROSS_ULOOP(32, {
  bool sat = false;
  pd = (sat_subu<uint32_t>(ps1, ps2, sat));
  P_SET_OV(sat);
}, {
  bool sat = false;
  pd = (sat_addu<uint32_t>(ps1, ps2, sat));
  P_SET_OV(sat);
})