[pypy-svn] r66977 - pypy/branch/pyjitpl5/pypy/jit/backend/test

fijal at codespeak.net fijal at codespeak.net
Wed Aug 19 16:00:42 CEST 2009


Author: fijal
Date: Wed Aug 19 16:00:41 2009
New Revision: 66977

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py
Log:
(pedronis, fijal) Add const version of those operations


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/runner_test.py	Wed Aug 19 16:00:41 2009
@@ -660,6 +660,11 @@
                                      [BoxPtr(x)],  'int').value
         res2 = self.execute_operation(rop.CAST_INT_TO_PTR,
                                       [BoxInt(res)], 'ptr').value
+        x = lltype.cast_opaque_ptr(llmemory.GCREF, x)
+        res = self.execute_operation(rop.CAST_PTR_TO_INT,
+                                     [ConstPtr(x)],  'int').value
+        res2 = self.execute_operation(rop.CAST_INT_TO_PTR,
+                                      [ConstInt(res)], 'ptr').value
         assert res2 == x
 
     def test_ooops_non_gc(self):



More information about the Pypy-commit mailing list