summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2024-03-21 12:26:39 -0400
committerPeter LaFosse <peter@vector35.com>2024-03-22 13:46:21 -0400
commit5a1258bad3e93e6d60253fb7a95668baf90095f8 (patch)
treec8b42194be77d2689d238d117193cd018c9c86d3 /arch/x86
parent3788c92d968f5522323b8e6d5c6cf614dd4b021a (diff)
Remove FloatTruncate as its implied by 'FloatToInt'
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/il.cpp7
1 files 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: