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

fijal at codespeak.net fijal at codespeak.net
Sun Apr 6 21:42:07 CEST 2008


Author: fijal
Date: Sun Apr  6 21:42:07 2008
New Revision: 53482

Modified:
   pypy/branch/jit-hotpath/pypy/jit/codegen/test/rgenop_tests.py
Log:
Simplify the test


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 21:42:07 2008
@@ -802,16 +802,14 @@
     return write_frame_place_runner
 
 def make_float_caller(rgenop):
-    FUNC = lltype.FuncType([lltype.Signed, lltype.Float], lltype.Float)
     sigtoken = rgenop.sigToken(FLOATFUNC)
-    innertoken = rgenop.sigToken(FUNC)
-    builder, gv_f, [gv_y, gv_x] = rgenop.newgraph(innertoken, "inner")
+    builder, gv_f, [gv_x] = rgenop.newgraph(sigtoken, "inner")
     builder.start_writing()
-    builder.finish_and_return(innertoken, gv_x)
+    builder.finish_and_return(sigtoken, gv_x)
     builder.end()
     builder, gv_f2, [gv_x] = rgenop.newgraph(sigtoken, "outer")
     builder.start_writing()
-    gv_res = builder.genop_call(innertoken, gv_f, [rgenop.genconst(3), gv_x])
+    gv_res = builder.genop_call(sigtoken, gv_f, [gv_x])
     builder.finish_and_return(sigtoken, gv_res)
     builder.end()
 



More information about the Pypy-commit mailing list