[pypy-svn] r65616 - in pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm: . test
arigo at codespeak.net
arigo at codespeak.net
Sat Jun 6 15:42:28 CEST 2009
Author: arigo
Date: Sat Jun 6 15:42:26 2009
New Revision: 65616
Added:
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py (contents, props changed)
Modified:
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/llvm_rffi.py
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py
Log:
Start porting runner_test.py.
Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/llvm_rffi.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/llvm_rffi.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/llvm_rffi.py Sat Jun 6 15:42:26 2009
@@ -193,7 +193,7 @@
LLVMBasicBlockRef], # block if false
LLVMValueRef)
-for _name in ['Add', 'Sub', 'LShr']:
+for _name in ['Add', 'Sub', 'Shl', 'LShr']:
globals()['LLVMBuild' + _name] = llexternal('LLVMBuild' + _name,
[LLVMBuilderRef, # builder
LLVMValueRef, # left-hand side
Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py Sat Jun 6 15:42:26 2009
@@ -235,6 +235,7 @@
for _opname, _llvmname in [('INT_ADD', 'Add'),
('INT_SUB', 'Sub'),
+ ('INT_LSHIFT', 'Shl'),
('UINT_RSHIFT', 'LShr'),
]:
exec py.code.Source('''
@@ -312,3 +313,6 @@
if hasattr(LLVMJITCompiler, methname):
all_operations[_value] = methname
all_operations = unrolling_iterable(all_operations.items())
+
+import pypy.jit.metainterp.executor
+pypy.jit.metainterp.executor.make_execute_list(LLVMCPU)
Added: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py
==============================================================================
--- (empty file)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py Sat Jun 6 15:42:26 2009
@@ -0,0 +1,30 @@
+import py
+from pypy.jit.backend.llvm.runner import LLVMCPU
+from pypy.jit.backend.test.runner_test import LLtypeBackendTest
+
+
+class TestLLVM(LLtypeBackendTest):
+
+ # for the individual tests see
+ # ====> ../../test/runner_test.py
+
+ def setup_class(cls):
+ cls.cpu = LLVMCPU(None)
+ cls.cpu.setup_once()
+
+ def _skip(self):
+ py.test.skip("in-progress")
+
+ test_do_call = _skip
+ test_executor = _skip
+ test_uint_rshift = _skip
+ test_binary_operations = _skip
+ test_unary_operations = _skip
+ test_ovf_operations = _skip
+ test_ovf_operations_reversed = _skip
+ test_passing_guards = _skip
+ test_passing_guard_class = _skip
+ test_failing_guards = _skip
+ test_failing_guard_class = _skip
+ test_casts = _skip
+ test_ooops_non_gc = _skip
More information about the Pypy-commit
mailing list