Add Frintz_S/V opcode and unit test, correction of some unit tests (#523)

* Add Frintz_S/V opcode and unit test, correction of some unit tests

* --test

* fix code style issue

* delete tab
This commit is contained in:
MS-DOS1999 2018-12-18 01:29:47 +01:00 committed by gdkchan
parent 2e143365eb
commit 6aaf9ccb53
3 changed files with 97 additions and 109 deletions

View file

@ -1380,6 +1380,22 @@ namespace ChocolArm64.Instructions
});
}
public static void Frintz_S(ILEmitterCtx context)
{
EmitScalarUnaryOpF(context, () =>
{
EmitUnaryMathCall(context, nameof(Math.Truncate));
});
}
public static void Frintz_V(ILEmitterCtx context)
{
EmitVectorUnaryOpF(context, () =>
{
EmitUnaryMathCall(context, nameof(Math.Truncate));
});
}
public static void Frsqrte_S(ILEmitterCtx context)
{
EmitScalarUnaryOpF(context, () =>