Is the VAND.VI immediate zero-extended?
No. RVV integer immediate logical forms use a 5-bit signed immediate sign-extended to SEW.
Bitwise AND each vs2 element with vs1: vd[i]=vs2[i] & vs1.
VAND.VV performs bitwise AND for each active element. Both vector source elements participate at the current SEW width.
VAND.VV is RVV integer bitwise AND, useful for keeping selected bits in each element.
Understand this scenario with real code like «vsetvli t0, a0, e32, m1, ta, ma vand.vv v1, v2, v3».
Understand this scenario with real code like «vsetvli t0, a0, e32, m1, ta, ma vand.vv v1, v2, v3».
No. RVV integer immediate logical forms use a 5-bit signed immediate sign-extended to SEW.