about summary refs log tree commit diff stats
path: root/test/test_all.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_all.py')
-rwxr-xr-xtest/test_all.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/test_all.py b/test/test_all.py
index 7ea55235..d2aa5d20 100755
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -189,6 +189,56 @@ for test_name in QEMU_TESTS:
         testset += QEMUTest(test_name, jitter, tags=tags)
 
 
+class QEMUTestx86_64(QEMUTest):
+    SAMPLE_NAME = "test-x86_64"
+    SCRIPT_NAME = "testqemu64.py"
+    EXPECTED_PATH = "expected_x86_64"
+
+
+# Test name -> supported jitter engines
+QEMU_TESTS_x86_64 = [
+    "adc",
+    "add",
+    "and",
+    "btc",
+    "bt",
+    "btr",
+    "bts",
+    "cmp",
+    "conv",
+    "dec",
+    "inc",
+    "jcc",
+    "lea",
+    "misc",
+    "mul",
+    "neg",
+    "not",
+    "or",
+    "rcl",
+    "rcr",
+    "rol",
+    "ror",
+    "sar",
+    "sbb",
+    "shld",
+    "shl",
+    "shrd",
+    "shr",
+    "string",
+    "sub",
+    "xor",
+    # Unsupported
+    # "sse", "floats", "loop", "xchg", "fxsave"
+]
+
+
+for test_name in QEMU_TESTS_x86_64:
+    for jitter in QEMUTestx86_64.jitter_engines:
+        tags = [TAGS[jitter]] if jitter in TAGS else []
+        testset += QEMUTestx86_64(test_name, jitter, tags=tags)
+
+
 ## Semantic
 class SemanticTestAsm(RegressionTest):
     """Assemble an asm file"""