diff --git a/ChocolArm64/Instruction/AInstEmitSimdShift.cs b/ChocolArm64/Instruction/AInstEmitSimdShift.cs index 71d74f708..28cf8c2e7 100644 --- a/ChocolArm64/Instruction/AInstEmitSimdShift.cs +++ b/ChocolArm64/Instruction/AInstEmitSimdShift.cs @@ -87,14 +87,8 @@ namespace ChocolArm64.Instruction int Shift = GetImmShr(Op); - long RoundConst = 1L << (Shift - 1); - Action Emit = () => { - Context.EmitLdc_I8(RoundConst); - - Context.Emit(OpCodes.Add); - Context.EmitLdc_I4(Shift); Context.Emit(OpCodes.Shr); @@ -109,14 +103,8 @@ namespace ChocolArm64.Instruction int Shift = GetImmShr(Op); - long RoundConst = 1L << (Shift - 1); - Action Emit = () => { - Context.EmitLdc_I8(RoundConst); - - Context.Emit(OpCodes.Add); - Context.EmitLdc_I4(Shift); Context.Emit(OpCodes.Shr); @@ -458,4 +446,4 @@ namespace ChocolArm64.Instruction Context.EmitStvec(Op.Rd); } } -} \ No newline at end of file +}