fminp
Vector Floating-Point Min Pairwise
Min of adjacent float elements.
Pseudocode Operation
for i = 0 to num_pairs-1 do
Vd[2*i] ← FMin(Vn[2*i], Vn[2*i+1])
Vd[2*i+1] ← FMin(Vm[2*i], Vm[2*i+1])
Example
Encoding
Operands
-
Vd
Destination SIMD/FP vector register -
Vn
First source SIMD/FP vector register -
Vm
Second source SIMD/FP vector register
Related
More in NEON (SIMD)
Reference
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x5EB0F800 | FMINP H<d>, <Vn>.2H | A64 | 01 | 0 | 11110 | 1 | 0 | 11000 | 01111 | 10 | Rn | Rd | ||
| 0x7EB0F800 | FMINP <V><d>, <Vn>.<T> | A64 | 01 | 1 | 11110 | 1 | sz | 11000 | 01111 | 10 | Rn | Rd | ||
| 0x2EC03400 | FMINP <Vd>.<T>, <Vn>.<T>, <Vm>.<T> | A64 | 0 | Q | 1 | 01110 | 1 | 10 | Rm | 00 | 110 | 1 | Rn | Rd | ||
| 0x2EA0F400 | FMINP <Vd>.<T>, <Vn>.<T>, <Vm>.<T> | A64 | 0 | Q | 1 | 01110 | 1 | sz | 1 | Rm | 11110 | 1 | Rn | Rd | ||
| 0x64178000 | FMINP <Zdn>.<T>, <Pg>/M, <Zdn>.<T>, <Zm>.<T> | A64 | 01100100 | size | 010 | 11 | 1 | 100 | Pg | Zm | Zdn |
Description
Floating-point Minimum Pairwise (vector). This instruction creates a vector by concatenating the vector elements of the first source SIMD&FP register after the vector elements of the second source SIMD&FP register, reads each pair of adjacent vector elements from the concatenated vector, writes the smaller of each pair of values into a vector, and writes the vector to the destination SIMD&FP register. All the values in this instruction are floating-point values. When FPCR.AH is 0, the behavior is as follows for each pairwise operation: When FPCR.AH is 1, the behavior is as follows for each pairwise operation: This instruction can generate a floating-point exception. Depending on the settings in FPCR, the exception results in either a flag being set in FPSR or a synchronous exception being generated. For more information, see Floating-point exception traps. Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.
Operation
CheckFPAdvSIMDEnabled64();
bits(datasize) operand1 = V[n, datasize];
bits(datasize) operand2 = V[m, datasize];
bits(datasize) result;
bits(2*datasize) concat = operand2:operand1;
bits(esize) element1;
bits(esize) element2;
for e = 0 to elements-1
if pair then
element1 = Elem[concat, 2*e, esize];
element2 = Elem[concat, (2*e)+1, esize];
else
element1 = Elem[operand1, e, esize];
element2 = Elem[operand2, e, esize];
if minimum then
Elem[result, e, esize] = FPMin(element1, element2, FPCR);
else
Elem[result, e, esize] = FPMax(element1, element2, FPCR);
V[d, datasize] = result;