VFSGNJ.VV
Vector Float Sign Injection
VFSGNJ.VV vd, vs2, vs1, vm
Injects the sign of vs2 into vs1 (Copy Sign).
Encoding
Binary Layout
001000
31:26
vm
25
vs2
24:20
vs1
19:15
001
14:12
vd
11:7
1010111
6:0
Operands
-
vd
Destination vector register -
vs2
Sign Src -
vs1
Body Src
Example
VFSGNJ.VV v1, v4, v2, v0.t
Related
More in V
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Injects the sign of one FP element into the magnitude of another, implementing sign copy, negate, or XOR operations.
Operation
foreach(i < vl): vd[i] = copy_sign(vs1[i], vs2[i]);