[pypy-svn] r66654 - pypy/branch/pyjitpl5/pypy/jit/metainterp/test

antocuni at codespeak.net antocuni at codespeak.net
Mon Jul 27 16:10:35 CEST 2009


Author: antocuni
Date: Mon Jul 27 16:10:34 2009
New Revision: 66654

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py
Log:
use simple_optimize for this test, so that the generated same_as is not removed away


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_basic.py	Mon Jul 27 16:10:34 2009
@@ -731,6 +731,7 @@
         self.meta_interp(f, [40, 0])
 
     def test_const_inputargs(self):
+        from pypy.jit.metainterp import simple_optimize
         myjitdriver = JitDriver(greens = ['m'], reds = ['n', 'x'])
         def f(n, x):
             m = 0x7FFFFFFF
@@ -742,7 +743,8 @@
                 m = m >> 1
             return x
 
-        res = self.meta_interp(f, [50, 1])
+        res = self.meta_interp(f, [50, 1],
+                               optimizer=simple_optimize)
         assert res == 42
 
 



More information about the Pypy-commit mailing list