blob: 603f35e715dfe6bc76c2935822eca382b871c504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// vssubu.vx vd, vs2, rs1
VI_CHECK_SSS(false);
VI_LOOP_BASE
bool sat = false;
switch (sew) {
case e8: {
VX_U_PARAMS(e8);
vd = sat_subu<uint8_t>(vs2, rs1, sat);
break;
}
case e16: {
VX_U_PARAMS(e16);
vd = sat_subu<uint16_t>(vs2, rs1, sat);
break;
}
case e32: {
VX_U_PARAMS(e32);
vd = sat_subu<uint32_t>(vs2, rs1, sat);
break;
}
default: {
VX_U_PARAMS(e64);
vd = sat_subu<uint64_t>(vs2, rs1, sat);
break;
}
}
P_SET_OV(sat);
VI_LOOP_END
|