VFNEG
Operation
Toggles the sign of active floating-point elements.
Assembler Syntax
VFNEG.{H|S|D}(x) Pn(p), Vn(v)
VFNEG.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)
VFNEG.{H|S|D}(x) Pn(p), Vn(v), <ea>(e)
Privilege
Unprivileged
Required CPUID flags
FP
VECTOR
VECTORFP
For each active H, S, or D element, VFNEG toggles the sign bit and preserves the remaining bits.
The register form reads and overwrites each active destination lane. The memory-source form reads each active memory element and writes the result to the corresponding destination lane. An inactive destination lane retains its previous value.
The memory-destination form transforms each active source-register element and writes the result to the corresponding memory element. Inactive memory elements retain their previous values, making the destination transaction a lane-wise read-modify-write.
2.75in
Encodings
VFNEG.{H|S|D}(x) Pn(p), Vn(v)
Format: Instruction format for VFNEG.{H|S|D}(x) Pn(p), Vn(v)
size — allowed: 0x5..0x7 [reserved_vector_element_type]
2.75in VFNEG.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)
Format: Instruction format for VFNEG.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)
size — allowed: 0x5..0x7 [reserved_vector_element_type]
2.75in VFNEG.{H|S|D}(x) Pn(p), Vn(v), <ea>(e)
Format: Instruction format for VFNEG.{H|S|D}(x) Pn(p), Vn(v), <ea>(e)
size — allowed: 0x5..0x7 [reserved_vector_element_type]
dst — excluded: immediate [invalid_destination]