Skip to content

VFABS

Operation

Clears the sign of active floating-point elements.

Assembler Syntax

VFABS.{H|S|D}(x) Pn(p), Vn(v)

VFABS.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)

VFABS.{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, VFABS clears 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

VFABS.{H|S|D}(x) Pn(p), Vn(v)

Format: Instruction format for VFABS.{H|S|D}(x) Pn(p), Vn(v)

Format: Instruction format for VFABS.{H|S|D}(x) Pn(p), Vn(v)

sizeallowed: 0x5..0x7 [reserved_vector_element_type]

2.75in VFABS.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VFABS.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VFABS.{H|S|D}(x) Pn(p), <ea>(e), Vn(v)

sizeallowed: 0x5..0x7 [reserved_vector_element_type]

2.75in VFABS.{H|S|D}(x) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VFABS.{H|S|D}(x) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VFABS.{H|S|D}(x) Pn(p), Vn(v), <ea>(e)

sizeallowed: 0x5..0x7 [reserved_vector_element_type]

dstexcluded: immediate [invalid_destination]