SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonfloat16_tvrndih_f16(float16_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
Hd result
This intrinsic compiles to the following instructions:

FRINTI Hd,Hn

Argument Preparation
a register: Hn
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;