[pypy-svn] r72302 - pypy/trunk/pypy/jit/backend/x86/test

arigo at codespeak.net arigo at codespeak.net
Wed Mar 17 12:23:01 CET 2010


Author: arigo
Date: Wed Mar 17 12:23:00 2010
New Revision: 72302

Added:
   pypy/trunk/pypy/jit/backend/x86/test/test_zmath.py
      - copied, changed from r72301, pypy/trunk/pypy/translator/c/test/test_math.py
Log:
Add a test for the SSE2 case too.  Note that it has no effect
on Windows so far.


Copied: pypy/trunk/pypy/jit/backend/x86/test/test_zmath.py (from r72301, pypy/trunk/pypy/translator/c/test/test_math.py)
==============================================================================
--- pypy/trunk/pypy/translator/c/test/test_math.py	(original)
+++ pypy/trunk/pypy/jit/backend/x86/test/test_zmath.py	Wed Mar 17 12:23:00 2010
@@ -1,6 +1,10 @@
+""" Test that the math module still behaves even when
+    compiled to C with SSE2 enabled.
+"""
 import py, math
 from pypy.module.math.test import test_direct
 from pypy.translator.c.test.test_genc import compile
+from pypy.jit.backend.x86.codebuf import ensure_sse2_floats
 
 
 def get_test_case((fnname, args, expected)):
@@ -27,6 +31,7 @@
               for testcase in test_direct.MathTests.TESTCASES]
 
 def fn():
+    ensure_sse2_floats()
     for i in range(len(testfnlist)):
         testfn = testfnlist[i]
         if not testfn():



More information about the Pypy-commit mailing list