[pypy-svn] r68163 - pypy/branch/merge-floats-via-sse2/pypy/jit/backend/test

arigo at codespeak.net arigo at codespeak.net
Mon Oct 5 12:57:44 CEST 2009


Author: arigo
Date: Mon Oct  5 12:57:43 2009
New Revision: 68163

Modified:
   pypy/branch/merge-floats-via-sse2/pypy/jit/backend/test/runner_test.py
Log:
Oups, there was already code in runner_test about
inserting some Consts in some cases.  Remove it.


Modified: pypy/branch/merge-floats-via-sse2/pypy/jit/backend/test/runner_test.py
==============================================================================
--- pypy/branch/merge-floats-via-sse2/pypy/jit/backend/test/runner_test.py	(original)
+++ pypy/branch/merge-floats-via-sse2/pypy/jit/backend/test/runner_test.py	Mon Oct  5 12:57:43 2009
@@ -247,28 +247,14 @@
     def test_int_operations(self):
         from pypy.jit.metainterp.test.test_executor import get_int_tests
         for opnum, boxargs, retvalue in get_int_tests():
-            if len(boxargs) == 2:
-                args_variants = [(boxargs[0], boxargs[1]),
-                                 (boxargs[0], boxargs[1].constbox()),
-                                 (boxargs[0].constbox(), boxargs[1])]
-            else:
-                args_variants = [boxargs]
-            for argboxes in args_variants:
-                res = self.execute_operation(opnum, argboxes, 'int')
-                assert res.value == retvalue
+            res = self.execute_operation(opnum, boxargs, 'int')
+            assert res.value == retvalue
         
     def test_float_operations(self):
         from pypy.jit.metainterp.test.test_executor import get_float_tests
         for opnum, boxargs, rettype, retvalue in get_float_tests(self.cpu):
-            if len(boxargs) == 2:
-                args_variants = [(boxargs[0], boxargs[1]),
-                                 (boxargs[0], boxargs[1].constbox()),
-                                 (boxargs[0].constbox(), boxargs[1])]
-            else:
-                args_variants = [boxargs]
-            for argboxes in args_variants:
-                res = self.execute_operation(opnum, argboxes, rettype)
-                assert res.value == retvalue
+            res = self.execute_operation(opnum, boxargs, rettype)
+            assert res.value == retvalue
 
     def test_ovf_operations(self, reversed=False):
         minint = -sys.maxint-1



More information about the Pypy-commit mailing list