VANDN.VX
Vector Bitwise AND-NOT Scalar
VANDN.VX vd, vs2, rs1, vm
Computes vd = vs2 & ~rs1.
Encoding
Binary Layout
000001
31:26
vm
25
vs2
24:20
rs1
19:15
100
14:12
vd
11:7
1010111
6:0
Operands
-
vd
Destination vector register -
vs2
Source vector register 2 -
rs1
Scalar
Example
VANDN.VX v1, v4, a0, v0.t
Related
More in Zvbb
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Inverts each bit of the scalar rs1 (sign-extended or truncated to SEW) and ANDs it with the corresponding bits of every element of vs2, writing the result to vd.
Operation
foreach(i < vl): vd[i] = vs2[i] & ~X(rs1);