[pypy-svn] r78319 - pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/test

hakanardo at codespeak.net hakanardo at codespeak.net
Tue Oct 26 21:58:22 CEST 2010


Author: hakanardo
Date: Tue Oct 26 21:58:21 2010
New Revision: 78319

Modified:
   pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/test/test_jump.py
Log:
failing test

Modified: pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/test/test_jump.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/test/test_jump.py	(original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/test/test_jump.py	Tue Oct 26 21:58:21 2010
@@ -142,3 +142,22 @@
                              ('push', s12),
                              ('mov', ebx, s12),
                              ('pop', ebx)]
+def test_crash():
+    assembler = MockAssembler()
+    dstvalues = [-56, -64, -72, -80, -88, 15, 14, 15, 13, 12, 15, -96, 
+                 -104, -112, 10, 9, 8, 7, 6, 3, -120, 2, 1]
+    srcvalues = [-56, -64, -72, -80, -88, -224, -216, -224, -248, -232,
+                 -224, -96, -104, -112, -184, -192, -264, 2, -312, -344,
+                 10, 8, 14]
+    print len(dstvalues), len(srcvalues)
+    class MyLocation(AssemblerLocation):
+        def __init__(self, value):
+            self.value = value
+        def location_code(self):
+            return 'b'
+        
+    src = [MyLocation(i) for i in srcvalues]
+    dst = [MyLocation(i) for i in dstvalues]
+        
+    remap_frame_layout(assembler, src, dst, '?')
+    assert assembler.ops == []



More information about the Pypy-commit mailing list