From c166f6cf0eb5d8dd697f03cb89c2703db1554b2b Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Fri, 20 Feb 2015 14:05:49 +0100 Subject: X86: add regression tests for bsf/bsr --- test/test_all.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/test_all.py') diff --git a/test/test_all.py b/test/test_all.py index a2fd6df3..1e5de442 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -68,7 +68,9 @@ class SemanticTestAsm(RegressionTest): class SemanticTestExec(RegressionTest): """Execute a binary file""" - launcher_dct = {("PE", "x86_64"): "sandbox_pe_x86_64.py"} + launcher_dct = {("PE", "x86_64"): "sandbox_pe_x86_64.py", + ("PE", "x86_32"): "sandbox_pe_x86_32.py", + } launcher_base = os.path.join("..", "example", "jitter") def __init__(self, arch, container, address, *args, **kwargs): @@ -86,9 +88,13 @@ class SemanticTestExec(RegressionTest): test_x86_64_mul_div = SemanticTestAsm("x86_64", "PE", ["mul_div"]) +test_x86_32_bsr_bsf = SemanticTestAsm("x86_32", "PE", ["bsr_bsf"]) testset += test_x86_64_mul_div +testset += test_x86_32_bsr_bsf testset += SemanticTestExec("x86_64", "PE", 0x401000, ["mul_div"], depends=[test_x86_64_mul_div]) +testset += SemanticTestExec("x86_32", "PE", 0x401000, ["bsr_bsf"], + depends=[test_x86_32_bsr_bsf]) ## Core for script in ["interval.py", -- cgit 1.4.1