[pypy-svn] r65617 - in pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm: . test
arigo at codespeak.net
arigo at codespeak.net
Sat Jun 6 15:45:09 CEST 2009
Author: arigo
Date: Sat Jun 6 15:45:09 2009
New Revision: 65617
Modified:
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/llvm_rffi.py
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/runner.py
pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py
Log:
Pass test_binary_operations.
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:45:09 2009
@@ -193,7 +193,8 @@
LLVMBasicBlockRef], # block if false
LLVMValueRef)
-for _name in ['Add', 'Sub', 'Shl', 'LShr']:
+for _name in ['Add', 'Sub', 'Mul', 'SDiv', 'SRem', 'Shl', 'LShr', 'AShr',
+ 'And', 'Or', 'Xor']:
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:45:09 2009
@@ -235,8 +235,15 @@
for _opname, _llvmname in [('INT_ADD', 'Add'),
('INT_SUB', 'Sub'),
+ ('INT_MUL', 'Mul'),
+ ('INT_FLOORDIV', 'SDiv'),
+ ('INT_MOD', 'SRem'),
('INT_LSHIFT', 'Shl'),
+ ('INT_RSHIFT', 'AShr'),
('UINT_RSHIFT', 'LShr'),
+ ('INT_AND', 'And'),
+ ('INT_OR', 'Or'),
+ ('INT_XOR', 'Xor'),
]:
exec py.code.Source('''
def generate_%s(self, op):
Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/llvm/test/test_runner.py Sat Jun 6 15:45:09 2009
@@ -17,8 +17,6 @@
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
More information about the Pypy-commit
mailing list