SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonfloat32x2_tvrndi_f32(float32x2_t a)Vector arithmetic / Rounding
Description
Floating-point Round to Integral, using current rounding mode (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 rounding mode that is determined by the FPCR, and writes the result to the SIMD&FP destination register.
Results
Vd.2S result
This intrinsic compiles to the following instructions:

FRINTI Vd.2S,Vn.2S

Argument Preparation
a register: Vn.2S
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;