[pypy-svn] r13995 - in pypy/dist/pypy/translator/llvm2: . test
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Jun 28 13:36:00 CEST 2005
Author: cfbolz
Date: Tue Jun 28 13:35:59 2005
New Revision: 13995
Modified:
pypy/dist/pypy/translator/llvm2/database.py
pypy/dist/pypy/translator/llvm2/funcnode.py
pypy/dist/pypy/translator/llvm2/test/test_genllvm.py
Log:
added mod
Modified: pypy/dist/pypy/translator/llvm2/database.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/database.py (original)
+++ pypy/dist/pypy/translator/llvm2/database.py Tue Jun 28 13:35:59 2005
@@ -92,3 +92,4 @@
self._tmpcount += 1
return "%tmp." + str(count)
+
\ No newline at end of file
Modified: pypy/dist/pypy/translator/llvm2/funcnode.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/funcnode.py (original)
+++ pypy/dist/pypy/translator/llvm2/funcnode.py Tue Jun 28 13:35:59 2005
@@ -140,6 +140,9 @@
def int_sub(self, op):
self.binaryop('sub', op)
+ def int_mod(self, op):
+ self.binaryop('rem', op)
+
def int_eq(self, op):
self.binaryop('seteq', op)
@@ -165,7 +168,9 @@
fromvar = self.db.repr_arg(op.args[0])
fromtype = self.db.repr_arg_type(op.args[0])
self.codewriter.cast(targetvar, fromtype, fromvar, targettype)
-
+
+ int_is_true = cast_bool_to_int
+
def direct_call(self, op):
assert len(op.args) >= 1
targetvar = self.db.repr_arg(op.result)
Modified: pypy/dist/pypy/translator/llvm2/test/test_genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/test/test_genllvm.py (original)
+++ pypy/dist/pypy/translator/llvm2/test/test_genllvm.py Tue Jun 28 13:35:59 2005
@@ -51,6 +51,7 @@
x += i != i
x += i >= i
x += i > i
+ x += x % i
#x += i is not None
#x += i is None
return i + 1 * i // i - 1
More information about the Pypy-commit
mailing list