Does VNSRL.WX round?
No. It is a narrowing right shift; use VNCLIP/VNCLIPU when fixed-point rounding and saturation are required.
logical narrowing right shift from 2*SEW source elements to SEW results.
VNSRL.WX performs a logical right shift on 2*SEW-wide source elements and writes SEW-width destination elements. The shift amount comes from a scalar integer register.
VNSRL.WX shrinks wide integer results back to SEW width using a logical right shift.
Understand this scenario with real code like «vnsrl.wx v8, v12, x5, v0.t».
Understand this scenario with real code like «vnsrl.wx v8, v12, x5, v0.t».
No. It is a narrowing right shift; use VNCLIP/VNCLIPU when fixed-point rounding and saturation are required.