[pypy-svn] r65638 - in pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm: . test

arigo at codespeak.net arigo at codespeak.net
Sun Jun 7 14:34:14 CEST 2009


Author: arigo
Date: Sun Jun  7 14:34:12 2009
New Revision: 65638

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py
   pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py
Log:
test_passing_guards.


Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py	Sun Jun  7 14:34:12 2009
@@ -444,6 +444,13 @@
     def generate_GUARD_TRUE(self, op):
         self._generate_guard(op, self.getbitarg(op.args[0]), False)
 
+    def generate_GUARD_VALUE(self, op):
+        equal = llvm_rffi.LLVMBuildICmp(self.builder,
+                                        llvm_rffi.Predicate.EQ,
+                                        self.getintarg(op.args[0]),
+                                        self.getintarg(op.args[1]), "")
+        self._generate_guard(op, equal, False)
+
     def generate_GUARD_NO_EXCEPTION(self, op):
         etype = llvm_rffi.LLVMBuildLoad(self.builder,
                                         self.cpu.const_exc_type, "")

Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py	Sun Jun  7 14:34:12 2009
@@ -17,7 +17,6 @@
 
     test_do_call = _skip
     test_executor = _skip
-    test_passing_guards = _skip
     test_passing_guard_class = _skip
     test_failing_guards = _skip
     test_failing_guard_class = _skip



More information about the Pypy-commit mailing list