about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2018-05-17 06:52:00 +0200
committerGitHub <noreply@github.com>2018-05-17 06:52:00 +0200
commitcb1e73d65b99b5e6f73bd7823b6142e99ef9994a (patch)
tree8822af82f38ecea052cf7bf94da8b4565df7918f
parentdb2b86a9f4d5ba1a2eafb00ca1324500e1080463 (diff)
parentf01c7ffbc51c2b9a08b0d2a2efce26a23ef3268a (diff)
downloadmiasm-cb1e73d65b99b5e6f73bd7823b6142e99ef9994a.tar.gz
miasm-cb1e73d65b99b5e6f73bd7823b6142e99ef9994a.zip
Merge pull request #745 from commial/feature/cc-div-128
Feature/cc div 128
-rw-r--r--miasm2/jitter/op_semantics.c4
-rw-r--r--miasm2/jitter/op_semantics.h3
-rwxr-xr-xtest/test_all.py1
3 files changed, 7 insertions, 1 deletions
diff --git a/miasm2/jitter/op_semantics.c b/miasm2/jitter/op_semantics.c
index 5a8becc4..0420532a 100644
--- a/miasm2/jitter/op_semantics.c
+++ b/miasm2/jitter/op_semantics.c
@@ -778,15 +778,19 @@ uint64_t double_to_mem_64(double d)
 UDIV(16)
 UDIV(32)
 UDIV(64)
+UDIV(128)
 
 UMOD(16)
 UMOD(32)
 UMOD(64)
+UMOD(128)
 
 IDIV(16)
 IDIV(32)
 IDIV(64)
+IDIV(128)
 
 IMOD(16)
 IMOD(32)
 IMOD(64)
+IMOD(128)
diff --git a/miasm2/jitter/op_semantics.h b/miasm2/jitter/op_semantics.h
index fec140e7..3eb81cff 100644
--- a/miasm2/jitter/op_semantics.h
+++ b/miasm2/jitter/op_semantics.h
@@ -1,6 +1,9 @@
 #ifndef OP_SEMANTICS_H
 #define OP_SEMANTICS_H
 
+#define uint128_t __uint128_t
+#define int128_t __int128_t
+
 #define CC_P 1
 extern const uint8_t parity_table[256];
 #define parity(a) parity_table[(a) & 0xFF]
diff --git a/test/test_all.py b/test/test_all.py
index 52873f4b..3572bda7 100755
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -59,7 +59,6 @@ class ArchUnitTest(RegressionTest):
 # script -> blacklisted jitter
 blacklist = {
     "x86/unit/mn_float.py": ["python", "llvm"],
-    "x86/unit/mn_div.py": ["gcc"],
 }
 for script in ["x86/sem.py",
                "x86/unit/mn_strings.py",