SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonint32_tvminvq_s32(int32x4_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
Sd result
This intrinsic compiles to the following instructions:

SMINV Sd,Vn.4S

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