Author: hager <[email protected]> Branch: ppc-jit-backend Changeset: r52245:2a3244286b2a Date: 2012-02-08 17:04 +0100 http://bitbucket.org/pypy/pypy/changeset/2a3244286b2a/
Log: remove further obsolete test diff --git a/pypy/jit/backend/ppc/test/test_operation.py b/pypy/jit/backend/ppc/test/test_operation.py deleted file mode 100644 --- a/pypy/jit/backend/ppc/test/test_operation.py +++ /dev/null @@ -1,43 +0,0 @@ -from pypy.jit.codegen.test.operation_tests import OperationTests -from pypy.jit.codegen.ppc.rgenop import RPPCGenOp -from pypy.rpython.memory.lltypelayout import convert_offset_to_int -from pypy.rlib.objectmodel import specialize - -def conv(n): - if not isinstance(n, int): - n = convert_offset_to_int(n) - return n - - -class RGenOpPacked(RPPCGenOp): - """Like RPPCGenOp, but produces concrete offsets in the tokens - instead of llmemory.offsets. These numbers may not agree with - your C compiler's. - """ - - @staticmethod - @specialize.memo() - def fieldToken(T, name): - return tuple(map(conv, RPPCGenOp.fieldToken(T, name))) - - @staticmethod - @specialize.memo() - def arrayToken(A): - return tuple(map(conv, RPPCGenOp.arrayToken(A))) - - @staticmethod - @specialize.memo() - def allocToken(T): - return conv(RPPCGenOp.allocToken(T)) - - @staticmethod - @specialize.memo() - def varsizeAllocToken(A): - return tuple(map(conv, RPPCGenOp.varsizeAllocToken(A))) - - -class PPCTestMixin(object): - RGenOp = RGenOpPacked - -class TestOperation(PPCTestMixin, OperationTests): - pass _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
