Author: Armin Rigo <[email protected]>
Branch: optresult-unroll
Changeset: r79283:fc4b741f41d4
Date: 2015-08-28 17:17 +0100
http://bitbucket.org/pypy/pypy/changeset/fc4b741f41d4/
Log: possible translation fix
diff --git a/rpython/jit/backend/x86/assembler.py
b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -1767,7 +1767,8 @@
if IS_X86_32:
self.mc.CMP16(mem(loc_ptr, 0), loc_expected_typeid)
else:
- self.mc.CMP32(mem(loc_ptr, 0), loc_expected_typeid)
+ assert isinstance(loc_expected_typeid, ImmedLoc)
+ self.mc.CMP32_mi((loc_ptr.value, 0), loc_expected_typeid.value)
def _cmp_guard_class_or_gc_type(self, guard_op, locs):
if ( guard_op.getopnum() == rop.GUARD_CLASS or
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit