[pypy-svn] pypy refactor-not-in-translator: (arigo, cfbolz): fix a lot of tests
cfbolz
commits-noreply at bitbucket.org
Fri Feb 25 20:31:17 CET 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: refactor-not-in-translator
Changeset: r42302:71a347edcb75
Date: 2011-02-25 20:10 +0100
http://bitbucket.org/pypy/pypy/changeset/71a347edcb75/
Log: (arigo, cfbolz): fix a lot of tests
diff --git a/pypy/rpython/rmodel.py b/pypy/rpython/rmodel.py
--- a/pypy/rpython/rmodel.py
+++ b/pypy/rpython/rmodel.py
@@ -215,6 +215,10 @@
else:
return hop.genop('int_is_true', [vlen], resulttype=Bool)
+ def rtype_is_false(self, hop):
+ v = self.rtype_is_true(hop)
+ return hop.genop("bool_not", [v], resulttype=Bool)
+
def rtype_hash(self, hop):
ll_hash = self.get_ll_hash_function()
v, = hop.inputargs(self)
More information about the Pypy-commit
mailing list