Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r53836:3ac6a9c5d380
Date: 2012-03-20 12:01 -0400
http://bitbucket.org/pypy/pypy/changeset/3ac6a9c5d380/
Log: fix test for 32 bits
diff --git a/pypy/jit/codewriter/test/test_flatten.py
b/pypy/jit/codewriter/test/test_flatten.py
--- a/pypy/jit/codewriter/test/test_flatten.py
+++ b/pypy/jit/codewriter/test/test_flatten.py
@@ -972,10 +972,16 @@
from pypy.rlib.longlong2float import float2longlong
def f(x):
return float2longlong(x)
+ if longlong.is_64_bit:
+ result_var = "%i0"
+ return_op = "int_return"
+ else:
+ result_var = "%f1"
+ return_op = "float_return"
self.encoding_test(f, [25.0], """
- convert_float_bytes_to_longlong %f0 -> %i0
- int_return %i0
- """)
+ convert_float_bytes_to_longlong %%f0 -> %(result_var)s
+ %(return_op)s %(result_var)s
+ """ % {"result_var": result_var, "return_op": return_op})
def check_force_cast(FROM, TO, operations, value):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit