Commits

Armin Rigo  committed c4dd095

Fix the test.

  • Participants
  • Parent commits afb227c

Comments (0)

Files changed (1)

File rpython/jit/backend/x86/test/test_ztranslation_basic.py

 from rpython.jit.backend.llsupport.test.ztranslation_test import TranslationTest
-from rpython.translator.translator import TranslationContext
-from rpython.config.translationoption import DEFL_GC
+from rpython.jit.backend.x86.arch import WORD
 
 
 class TestTranslationX86(TranslationTest):
     def _check_cbuilder(self, cbuilder):
         # We assume here that we have sse2.  If not, the CPUClass
         # needs to be changed to CPU386_NO_SSE2, but well.
-        assert '-msse2' in cbuilder.eci.compile_extra
-        assert '-mfpmath=sse' in cbuilder.eci.compile_extra
+        if WORD == 4:
+            assert '-msse2' in cbuilder.eci.compile_extra
+            assert '-mfpmath=sse' in cbuilder.eci.compile_extra