Author: Richard Plangger <r...@pasra.at> Branch: Changeset: r78705:d221a50d7898 Date: 2015-07-29 12:15 +0200 http://bitbucket.org/pypy/pypy/changeset/d221a50d7898/
Log: added test to check if cast single float to bool is working properly aswell diff --git a/rpython/jit/codewriter/test/test_flatten.py b/rpython/jit/codewriter/test/test_flatten.py --- a/rpython/jit/codewriter/test/test_flatten.py +++ b/rpython/jit/codewriter/test/test_flatten.py @@ -874,6 +874,11 @@ float_ne %f0, $0.0 -> %i0 int_return %i0 """, transform=True) + self.encoding_test(f, [rffi.cast(lltype.SingleFloat, 0.5)], """ + cast_singlefloat_to_float %i0 -> %f0 + float_ne %f0, $0.0 -> %i1 + int_return %i1 + """, transform=True) # Casts to lltype.SingleFloat def g(n): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit