Add FMaxNmV & FMinNmV Inst.s with Test. (#1279)
Successful unit testing on Windows (debug and release mode).
This commit is contained in:
parent
5795bb1528
commit
83d94b21d0
5 changed files with 71 additions and 0 deletions
|
@ -1103,6 +1103,26 @@ namespace ARMeilleure.Instructions
|
|||
context.Copy(GetVec(op.Rd), d);
|
||||
}
|
||||
|
||||
public static void EmitVectorAcrossVectorOpF(ArmEmitterContext context, Func2I emit)
|
||||
{
|
||||
OpCodeSimd op = (OpCodeSimd)context.CurrOp;
|
||||
|
||||
Debug.Assert((op.Size & 1) == 0 && op.RegisterSize == RegisterSize.Simd128);
|
||||
|
||||
Operand res = context.VectorExtract(OperandType.FP32, GetVec(op.Rn), 0);
|
||||
|
||||
for (int index = 1; index < 4; index++)
|
||||
{
|
||||
Operand n = context.VectorExtract(OperandType.FP32, GetVec(op.Rn), index);
|
||||
|
||||
res = emit(res, n);
|
||||
}
|
||||
|
||||
Operand d = context.VectorInsert(context.VectorZero(), res, 0);
|
||||
|
||||
context.Copy(GetVec(op.Rd), d);
|
||||
}
|
||||
|
||||
public static void EmitVectorPairwiseOpF(ArmEmitterContext context, Func2I emit)
|
||||
{
|
||||
OpCodeSimdReg op = (OpCodeSimdReg)context.CurrOp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue