Skip to main content

nclip

pub fn nclip(
    vs2_elem: u64,
    shamt: u32,
    sew: Vsew,
    mode: Vxrm,
    vxsat: &mut bool,
) -> u64
Expand description

Narrowing signed clip: read a 2*SEW signed element from vs2, shift right arithmetically with rounding, saturate to signed SEW range.

Same SEW constraint as nclipu.