From 6aaf9ccb533d1485361f55fa7d6d16dda719bf06 Mon Sep 17 00:00:00 2001 From: MS-DOS1999 Date: Tue, 18 Dec 2018 01:29:47 +0100 Subject: 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 --- ChocolArm64/Instructions/InstEmitSimdArithmetic.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChocolArm64/Instructions/InstEmitSimdArithmetic.cs') diff --git a/ChocolArm64/Instructions/InstEmitSimdArithmetic.cs b/ChocolArm64/Instructions/InstEmitSimdArithmetic.cs index df84596b..013d0432 100644 --- a/ChocolArm64/Instructions/InstEmitSimdArithmetic.cs +++ b/ChocolArm64/Instructions/InstEmitSimdArithmetic.cs @@ -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, () => -- cgit v1.2.3