Add support for the FMLA (by element/scalar) instruction (#187)

* Add support for the FMLA (by element/scalar) instruction

* Fix encoding
This commit is contained in:
gdkchan 2018-06-28 20:51:38 -03:00 committed by GitHub
parent 3e81421b2f
commit bc26aa558a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View file

@ -516,6 +516,15 @@ namespace ChocolArm64.Instruction
Fmin_S(Context);
}
public static void Fmla_Se(AILEmitterCtx Context)
{
EmitScalarTernaryOpByElemF(Context, () =>
{
Context.Emit(OpCodes.Mul);
Context.Emit(OpCodes.Add);
});
}
public static void Fmla_V(AILEmitterCtx Context)
{
EmitVectorTernaryOpF(Context, () =>