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

fijal at codespeak.net fijal at codespeak.net
Thu Apr 3 08:33:43 CEST 2008


Author: fijal
Date: Thu Apr  3 08:33:41 2008
New Revision: 53274

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/test/rgenop_tests.py
Log:
test same_as, just because (passes)


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	Thu Apr  3 08:33:41 2008
@@ -197,7 +197,8 @@
     gv_y1 = bodybuilder.genop1("float_neg", gv_y)
     gv_i1 = bodybuilder.genop1("cast_int_to_float", gv_i)
     gv_v0 = bodybuilder.genop2("float_mul", gv_y1, gv_i1)
-    gv_res0 = bodybuilder.genop2("float_sub", gv_res, gv_v0)
+    gv_v1 = bodybuilder.genop_same_as(gv_v0)
+    gv_res0 = bodybuilder.genop2("float_sub", gv_res, gv_v1)
     gv_i2 = bodybuilder.genop2("int_add", gv_i, rgenop.genconst(1))
     bodybuilder.finish_and_goto([gv_x, gv_y, gv_i2, gv_res0], loopblock)
     builder.end()



More information about the Pypy-commit mailing list