Skip to content

VFMAX

Operation

Selects the floating-point maximum in each active lane.

Assembler Syntax

VFMAX.{H|S|D}(z) Pn(p), Vn(v), Vn(w)

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

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

Privilege

Unprivileged

Required CPUID flags

FP

VECTOR

VECTORFP

VFMAX applies the scalar floating-point maximum rules to each active H, S, or D destination element and its corresponding source element. The register form and the memory-source form write the selected value to the destination vector lane. An inactive destination lane retains its previous value.

The memory-destination form combines each active destination element with the corresponding source-register element and writes the selected value back to that memory element. Inactive memory elements retain their previous values, making the destination transaction a lane-wise read-modify-write.

2.75in

Encodings

VFMAX.{H|S|D}(z) Pn(p), Vn(v), Vn(w)

Format: Instruction format for VFMAX.{H|S|D}(z) Pn(p), Vn(v), Vn(w)

Format: Instruction format for VFMAX.{H|S|D}(z) Pn(p), Vn(v), Vn(w)

sizeallowed: 0x1..0x3 [reserved_vector_element_type]

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

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

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

sizeallowed: 0x1..0x3 [reserved_vector_element_type]

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

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

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

sizeallowed: 0x1..0x3 [reserved_vector_element_type]

dstexcluded: immediate [invalid_destination]