SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonint16x8_tvcvtq_n_s16_f16(float16x8_t a, const int n)Data type conversion / Conversions
Description
Floating-point Convert to Signed fixed-point, rounding toward Zero (vector). This instruction converts a scalar or each element in a vector from floating-point to fixed-point signed integer using the Round towards Zero rounding mode, and writes the result to the SIMD&FP destination register.
Results
Vd.8H result
This intrinsic compiles to the following instructions:

FCVTZS Vd.8H,Vn.8H,#n

Argument Preparation
a register: Vn.8Hn minimum: 1; maximum: 16
Architectures
A32, A64

Operation

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

bits(esize) element;
FPCRType fpcr    = FPCR[];
boolean merge    = elements == 1 && IsMerging(fpcr);
bits(128) result = if merge then V[d] else Zeros();
for e = 0 to elements-1
    element = Elem[operand, e, esize];
    Elem[result, e, esize] = FPToFixed(element, fracbits, unsigned, fpcr, rounding);

V[d] = result;