Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r64809:fc0d2316ad35
Date: 2013-06-06 10:54 +0200
http://bitbucket.org/pypy/pypy/changeset/fc0d2316ad35/

Log:    The front-end never generates pure operations with all-constant
        arguments. The x86 backend doesn't support them.

diff --git a/rpython/jit/backend/test/runner_test.py 
b/rpython/jit/backend/test/runner_test.py
--- a/rpython/jit/backend/test/runner_test.py
+++ b/rpython/jit/backend/test/runner_test.py
@@ -1918,9 +1918,10 @@
             res = self.execute_operation(rop.CAST_INT_TO_FLOAT,
                                          [BoxInt(x)],  'float').value
             assert longlong.getrealfloat(res) == float(x)
-            res = self.execute_operation(rop.CAST_INT_TO_FLOAT,
-                                         [ConstInt(x)],  'float').value
-            assert longlong.getrealfloat(res) == float(x)
+            # --- the front-end never generates CAST_INT_TO_FLOAT(Const)
+            #res = self.execute_operation(rop.CAST_INT_TO_FLOAT,
+            #                             [ConstInt(x)],  'float').value
+            #assert longlong.getrealfloat(res) == float(x)
 
     def test_cast_float_to_int(self):
         if not self.cpu.supports_floats:
@@ -1930,9 +1931,10 @@
             res = self.execute_operation(rop.CAST_FLOAT_TO_INT,
                                          [BoxFloat(v)],  'int').value
             assert res == int(x)
-            res = self.execute_operation(rop.CAST_FLOAT_TO_INT,
-                                         [ConstFloat(v)],  'int').value
-            assert res == int(x)
+            # --- the front-end never generates CAST_FLOAT_TO_INT(Const)
+            #res = self.execute_operation(rop.CAST_FLOAT_TO_INT,
+            #                             [ConstFloat(v)],  'int').value
+            #assert res == int(x)
 
     def test_convert_float_bytes(self):
         if not self.cpu.supports_floats:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to