SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonfloat16x4_tvrndn_f16(float16x4_t a)Vector arithmetic / Rounding
Description
Floating-point Round to Integral, to nearest with ties to even (vector). This instruction rounds a vector of floating-point values in the SIMD&FP source register to integral floating-point values of the same size using the Round to Nearest rounding mode, and writes the result to the SIMD&FP destination register.
Results
Vd.4H result
This intrinsic compiles to the following instructions:

FRINTN Vd.4H,Vn.4H

Argument Preparation
a register: Vn.4H
Architectures
A32, A64

Operation

CheckFPAdvSIMDEnabled64();
bits(datasize) operand = V[n];
bits(datasize) result;
bits(esize) element;

for e = 0 to elements-1
    element = Elem[operand, e, esize];
    Elem[result, e, esize] = FPRoundInt(element, FPCR[], rounding, exact);

V[d] = result;