Author: Carl Friedrich Bolz <[email protected]>
Branch: int-tag-untag-as-operations
Changeset: r63593:033e8618fef1
Date: 2013-04-24 16:54 +0200
http://bitbucket.org/pypy/pypy/changeset/033e8618fef1/
Log: fix test_rerased in test_ajit
diff --git a/rpython/jit/backend/llgraph/runner.py
b/rpython/jit/backend/llgraph/runner.py
--- a/rpython/jit/backend/llgraph/runner.py
+++ b/rpython/jit/backend/llgraph/runner.py
@@ -802,7 +802,19 @@
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit