Commits

Carl Friedrich Bolz  committed 033e861

fix test_rerased in test_ajit

  • Participants
  • Parent commits 5af87d0
  • Branches int-tag-untag-as-operations

Comments (0)

Files changed (1)

File rpython/jit/backend/llgraph/runner.py

         else:
             ovf = False
         self.overflow_flag = ovf
-        return z        
+        return z
+
+    def execute_int_tag_ovf(self, _, x):
+        try:
+            z = ovfcheck(x << 1)
+        except OverflowError:
+            ovf = True
+            z = 0
+        else:
+            ovf = False
+            z += 1
+        self.overflow_flag = ovf
+        return z
 
     def execute_guard_no_overflow(self, descr):
         if self.overflow_flag: