about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-10 14:48:24 +0100
committerAjax <commial@gmail.com>2015-11-10 14:48:24 +0100
commit6c3958160719e6e69415581db33f94930e570aa9 (patch)
tree0f89fe88275de9116535332199a1f036c37f3e32
parentf395f83a09d13f7ee5a16d0a33b83de5362b4cd7 (diff)
downloadmiasm-6c3958160719e6e69415581db33f94930e570aa9.tar.gz
miasm-6c3958160719e6e69415581db33f94930e570aa9.zip
x86/sem: `fist` was duplicated
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/sem.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index 2bc28abc..4075569d 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -2000,14 +2000,6 @@ def fistp(ir, instr, a):
     e += float_pop(a)
     return e, extra
 
-def fist(ir, instr, a):
-    e = []
-    e.append(m2_expr.ExprAff(a, m2_expr.ExprOp('double_to_int_%d' % a.size,
-                                               float_st0)))
-
-    e += set_float_cs_eip(instr)
-    return e, []
-
 def fisttp(ir, instr, a):
     e = []
     e.append(m2_expr.ExprAff(a,
@@ -2021,7 +2013,9 @@ def fisttp(ir, instr, a):
 
 def fild(ir, instr, a):
     # XXXXX
-    src = m2_expr.ExprOp('int_%.2d_to_double' % a.size, a)
+    src = m2_expr.ExprO
+
+    p('int_%.2d_to_double' % a.size, a)
     e = []
     e += set_float_cs_eip(instr)
     e_fld, extra = fld(ir, instr, src)