Author: David Schneider <[email protected]>
Branch: arm-backend-2
Changeset: r51337:a317879ec998
Date: 2012-01-16 09:48 +0100
http://bitbucket.org/pypy/pypy/changeset/a317879ec998/
Log: print some information when hitting a missing operation in the
backend
diff --git a/pypy/jit/backend/arm/assembler.py
b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -1071,10 +1071,13 @@
def notimplemented_op(self, op, arglocs, regalloc, fcond):
+ print "[ARM/asm] %s not implemented" % op.getopname()
raise NotImplementedError(op)
def notimplemented_op_with_guard(self, op, guard_op, arglocs, regalloc, fcond):
+ print "[ARM/asm] %s with guard %s not implemented" % \
+ (op.getopname(), guard_op.getopname())
raise NotImplementedError(op)
asm_operations = [notimplemented_op] * (rop._LAST + 1)
diff --git a/pypy/jit/backend/arm/regalloc.py b/pypy/jit/backend/arm/regalloc.py
--- a/pypy/jit/backend/arm/regalloc.py
+++ b/pypy/jit/backend/arm/regalloc.py
@@ -1166,10 +1166,13 @@
def notimplemented(self, op, fcond):
+ print "[ARM/regalloc] %s not implemented" % op.getopname()
raise NotImplementedError(op)
def notimplemented_with_guard(self, op, guard_op, fcond):
+ print "[ARM/regalloc] %s with guard %s not implemented" % \
+ (op.getopname(), guard_op.getopname())
raise NotImplementedError(op)
operations = [notimplemented] * (rop._LAST + 1)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit