From 5a1258bad3e93e6d60253fb7a95668baf90095f8 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 21 Mar 2024 12:26:39 -0400 Subject: Remove FloatTruncate as its implied by 'FloatToInt' --- arch/x86/il.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/x86/il.cpp b/arch/x86/il.cpp index 136674e1..87217a5a 100644 --- a/arch/x86/il.cpp +++ b/arch/x86/il.cpp @@ -1128,9 +1128,7 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev il.AddInstruction( WriteILOperand(il, xedd, addr, 0, 0, il.FloatToInt(opOneLen, - il.FloatTrunc(0, - ReadFloatILOperand(il, xedd, addr, 1, 1) - ) + ReadFloatILOperand(il, xedd, addr, 1, 1) ) ) ); @@ -3644,9 +3642,8 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev il.AddInstruction( WriteILOperand(il, xedd, addr, 0, 0, il.FloatToInt(opOneLen, - il.FloatTrunc(10, il.RegisterStackPop(10, REG_STACK_X87), - IL_FLAGWRITE_X87RND)))); + IL_FLAGWRITE_X87RND))); break; case XED_ICLASS_FADD: -- cgit v1.3.1