Author: Richard Plangger <planri...@gmail.com>
Branch: vecopt-merge
Changeset: r79904:eb5e01de1f93
Date: 2015-09-30 09:26 +0200
http://bitbucket.org/pypy/pypy/changeset/eb5e01de1f93/

Log:    fixed tests that use the oparser_model instead of the real impl

diff --git a/rpython/jit/tool/oparser_model.py 
b/rpython/jit/tool/oparser_model.py
--- a/rpython/jit/tool/oparser_model.py
+++ b/rpython/jit/tool/oparser_model.py
@@ -79,19 +79,28 @@
             type = 'V'
 
         class Const(object):
+            bytesize = 8
+            signed = True
             def __init__(self, value=None):
                 self.value = value
 
             def _get_str(self):
                 return str(self.value)
 
+            def is_constant(self):
+                return True
+
         class ConstInt(Const):
+            datatype = 'i'
             pass
 
         class ConstPtr(Const):
+            datatype = 'r'
             pass
 
         class ConstFloat(Const):
+            datatype = 'f'
+            signed = False
             pass
 
         @classmethod
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to