From b50bc46888cf9a8d94ae1590c0941be62a083533 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 14 Mar 2018 01:59:22 -0300 Subject: CPU fix for the cases using a Mask with shift = 0 --- ChocolArm64/Decoder/AOpCodeSimdImm.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ChocolArm64/Decoder') diff --git a/ChocolArm64/Decoder/AOpCodeSimdImm.cs b/ChocolArm64/Decoder/AOpCodeSimdImm.cs index 2959aee6..e7dfe621 100644 --- a/ChocolArm64/Decoder/AOpCodeSimdImm.cs +++ b/ChocolArm64/Decoder/AOpCodeSimdImm.cs @@ -88,7 +88,14 @@ namespace ChocolArm64.Decoder private static long ShlOnes(long Value, int Shift) { - return Value << Shift | (long)(ulong.MaxValue >> (64 - Shift)); + if (Shift != 0) + { + return Value << Shift | (long)(ulong.MaxValue >> (64 - Shift)); + } + else + { + return Value; + } } } } \ No newline at end of file -- cgit v1.2.3