[pypy-svn] r53477 - pypy/branch/jit-hotpath/pypy/jit/codegen/test

fijal at codespeak.net fijal at codespeak.net
Sun Apr 6 20:24:03 CEST 2008


Author: fijal
Date: Sun Apr  6 20:24:01 2008
New Revision: 53477

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/test/rgenop_tests.py
Log:
A test that might showcase lack of address.float[0]


Modified: pypy/branch/jit-hotpath/pypy/jit/codegen/test/rgenop_tests.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/codegen/test/rgenop_tests.py	(original)
+++ pypy/branch/jit-hotpath/pypy/jit/codegen/test/rgenop_tests.py	Sun Apr  6 20:24:01 2008
@@ -1070,6 +1070,14 @@
         res = fn(30)
         assert res == 60
 
+    def test_read_frame_float_var_compile(self):
+        runner = get_read_frame_var_runner(self.RGenOp, False,
+                                           FrameVarFloatReader, FLOATFUNC)
+
+        fn = self.compile(runner, [float])
+        res = fn(3.3)
+        assert res == 3.3 * 2
+
     def test_genconst_from_frame_var_compile(self):
         runner = get_read_frame_var_runner(self.RGenOp, True,
                                            FrameVarReader, FUNC)



More information about the Pypy-commit mailing list