You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
459 B
30 lines
459 B
// vssubu.vv vd, vs2, vs1
|
|
VI_CHECK_SSS(true);
|
|
VI_LOOP_BASE
|
|
bool sat = false;
|
|
|
|
switch (sew) {
|
|
case e8: {
|
|
VV_U_PARAMS(e8);
|
|
vd = sat_subu<uint8_t>(vs2, vs1, sat);
|
|
break;
|
|
}
|
|
case e16: {
|
|
VV_U_PARAMS(e16);
|
|
vd = sat_subu<uint16_t>(vs2, vs1, sat);
|
|
break;
|
|
}
|
|
case e32: {
|
|
VV_U_PARAMS(e32);
|
|
vd = sat_subu<uint32_t>(vs2, vs1, sat);
|
|
break;
|
|
}
|
|
default: {
|
|
VV_U_PARAMS(e64);
|
|
vd = sat_subu<uint64_t>(vs2, vs1, sat);
|
|
break;
|
|
}
|
|
}
|
|
P_SET_OV(sat);
|
|
|
|
VI_LOOP_END
|
|
|