Maciej Fijalkowski avatar Maciej Fijalkowski committed d3bdf7d

fix test_jump

Comments (0)

Files changed (3)

 * 32bit x86
 * ARM
 * shadowstack + asmgcc
-* kill jit2gc on translator
+* kill jit2gc on translator
+* fix test_singlefloats in test_calling_conventions

pypy/jit/backend/x86/regloc.py

         return self.type == FLOAT
 
 class StackLoc(RawStackLoc):
+    _immutable_ = True
+    
     def __init__(self, position, ebp_offset, type):
         from pypy.jit.backend.x86.arch import JITFRAME_FIXED_SIZE, WORD
         
         assert ebp_offset >= 0
         #assert not (0 <= ebp_offset < 8 + 8 * IS_X86_64)
         self.position = position
-        assert (position + JITFRAME_FIXED_SIZE) * WORD == ebp_offset
+        if position != 9999:
+            assert (position + JITFRAME_FIXED_SIZE) * WORD == ebp_offset
         self.value = ebp_offset
         # One of INT, REF, FLOAT
         self.type = type

pypy/jit/backend/x86/test/test_jump.py

 
 def test_overflow_bug():
     CASE = [
-        (-144, -248),   # \ cycle
-        (-248, -144),   # /
-        (-488, -416),   # \ two usages of -488
-        (-488, -480),   # /
-        (-488, -488),   # - one self-application of -488
+        (144, 248),   # \ cycle
+        (248, 144),   # /
+        (488, 416),   # \ two usages of -488
+        (488, 480),   # /
+        (488, 488),   # - one self-application of -488
         ]
     class FakeAssembler:
         def regalloc_mov(self, src, dst):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.