[pypy-svn] r67442 - pypy/branch/no-recompilation/pypy/jit/backend/x86/test

fijal at codespeak.net fijal at codespeak.net
Thu Sep 3 12:44:16 CEST 2009


Author: fijal
Date: Thu Sep  3 12:44:15 2009
New Revision: 67442

Modified:
   pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py
Log:
skip rest of tests that need support for bridges (also rewrite)


Modified: pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py
==============================================================================
--- pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py	(original)
+++ pypy/branch/no-recompilation/pypy/jit/backend/x86/test/test_regalloc.py	Thu Sep  3 12:44:15 2009
@@ -2,6 +2,7 @@
 """ Tests for register allocation for common constructs
 """
 
+import py
 from pypy.jit.metainterp.history import ResOperation, BoxInt, ConstInt,\
      BoxPtr, ConstPtr, TreeLoop
 from pypy.jit.metainterp.resoperation import rop, ResOperation
@@ -269,6 +270,7 @@
         assert self.getint(0) == 20
 
     def test_two_loops_and_a_bridge(self):
+        py.test.skip("bridge support needed")
         ops = '''
         [i0, i1, i2, i3]
         i4 = int_add(i0, 1)
@@ -285,10 +287,17 @@
         i4 = int_add(i3, 1)
         i2 = int_lt(i4, 30)
         guard_true(i2)
-           jump(i4, i4, i4, i4)
+           fail(i2)
         jump(i4)
         '''
         loop2 = self.interpret(ops2, [0], jump_targets=[loop, 'self'])
+        bridge_ops = '''
+        [i4]
+        jump(i4, i4, i4, i4)
+        '''
+        xxx
+        bridge = self.attach_bridge(xxx)
+
         assert self.getint(0) == 31
         assert self.getint(1) == 30
         assert self.getint(2) == 30
@@ -311,7 +320,7 @@
         assert not self.cpu.assembler.fail_boxes_ptr[1]
 
     def test_exception_bridge_no_exception(self):
-
+        py.test.skip("rewrite")
         
         ops = '''
         [i0]
@@ -334,6 +343,7 @@
         # assert did not explode
 
     def test_nested_guards(self):
+        py.test.skip("rewrite")
         ops = '''
         [i0, i1]
         guard_true(i0)



More information about the Pypy-commit mailing list