You copied the Doc URL to your clipboard.

FMAXNM (vector)

Floating-point Maximum Number (vector).


FMAXNM Vd.T, Vn.T, Vm.T ; Half-precision

FMAXNM Vd.T, Vn.T, Vm.T ; Single-precision and double-precision



Is an arrangement specifier:

Can be one of 4H or 8H.
Single-precision and double-precision
Can be one of 2S, 4S or 2D.
Is the name of the SIMD and FP destination register.
Is the name of the first SIMD and FP source register.
Is the name of the second SIMD and FP source register.

Architectures supported (vector)

Supported in the Arm®v8.2 architecture and later.


Floating-point Maximum Number (vector). This instruction compares corresponding vector elements in the two source SIMD and FP registers, writes the larger of the two floating-point values into a vector, and writes the vector to the destination SIMD and FP register.

NaNs are handled according to the IEEE 754-2008 standard. If one vector element is numeric and the other is a quiet NaN, the result placed in the vector is the numerical value, otherwise the result is identical to FMAX (scalar).

This instruction can generate a floating-point exception. Depending on the settings in FPCR, the exception results in either a flag being set in FPSR, or a synchronous exception being generated. For more information, see Floating-point exception traps in the Arm® Architecture Reference Manual Arm®v8, for Arm®v8‑A architecture profile.

Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.

Was this page helpful? Yes No