SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonint16x4_tvqabs_s16(int16x4_t a)Vector arithmetic / Absolute / Saturating absolute value
Description
Signed saturating Absolute value. This instruction reads each vector element from the source SIMD&FP register, puts the absolute value of the result into a vector, and writes the vector to the destination SIMD&FP register. All the values in this instruction are signed integer values.
Results
Vd.4H result
This intrinsic compiles to the following instructions:

SQABS Vd.4H,Vn.4H

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

Operation

CheckFPAdvSIMDEnabled64();
bits(datasize) operand = V[n];
bits(datasize) result;
integer element;
boolean sat;

for e = 0 to elements-1
    element = SInt(Elem[operand, e, esize]);
    if neg then
        element = -element;
    else
        element = Abs(element);
    (Elem[result, e, esize], sat) = SignedSatQ(element, esize);         
    if sat then FPSR.QC = '1';

V[d] = result;