SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonint16_tvminvq_s16(int16x8_t a)Vector arithmetic / Across vector arithmetic / Minimum across vector
Description
Signed Minimum across Vector. This instruction compares all the vector elements in the source SIMD&FP register, and writes the smallest of the values as a scalar to the destination SIMD&FP register. All the values in this instruction are signed integer values.
Results
Hd result
This intrinsic compiles to the following instructions:

SMINV Hd,Vn.8H

Argument Preparation
a register: Vn.8H
Architectures
A64

Operation

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

maxmin = Int(Elem[operand, 0, esize], unsigned);
for e = 1 to elements-1
    element = Int(Elem[operand, e, esize], unsigned);
    maxmin = if min then Min(maxmin, element) else Max(maxmin, element);

V[d] = maxmin<esize-1:0>;