From bd412afb9fdf859643e26d2668874e3dc9cd41df Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 29 Jan 2022 19:59:34 -0300 Subject: Fix small precision error on CPU reciprocal estimate instructions (#3061) * Fix small precision error on CPU reciprocal estimate instructions * PPTC version bump --- ARMeilleure/Instructions/InstEmitSimdArithmetic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ARMeilleure/Instructions/InstEmitSimdArithmetic.cs') diff --git a/ARMeilleure/Instructions/InstEmitSimdArithmetic.cs b/ARMeilleure/Instructions/InstEmitSimdArithmetic.cs index e290e706..9a632fd6 100644 --- a/ARMeilleure/Instructions/InstEmitSimdArithmetic.cs +++ b/ARMeilleure/Instructions/InstEmitSimdArithmetic.cs @@ -3613,7 +3613,7 @@ namespace ARMeilleure.Instructions Operand masked = context.AddIntrinsic(Intrinsic.X86Pand, value, expMask); Operand isNaNInf = context.AddIntrinsic(Intrinsic.X86Pcmpeqd, masked, expMask); - value = context.AddIntrinsic(Intrinsic.X86Paddw, value, roundMask); + value = context.AddIntrinsic(Intrinsic.X86Paddd, value, roundMask); value = context.AddIntrinsic(Intrinsic.X86Pand, value, truncMask); return context.AddIntrinsic(Intrinsic.X86Blendvps, value, oValue, isNaNInf); -- cgit v1.2.3