Debian Codegraph @

rpython/jit/backend/x86/test/test_ztranslation_call_assembler.py

raw symbols SCIP
1 from rpython.jit.backend.llsupport.test.ztranslation_test import TranslationTestCallAssembler
2 from rpython.translator.translator import TranslationContext
3 from rpython.config.translationoption import DEFL_GC
4 from rpython.jit.backend.x86.arch import WORD
5 import sys
6
7
8 # On Windows, this test crashes obscurely, but only if compiled with
9 # Boehm, not if run with no GC at all. So for now we'll assume it is
10 # really a Boehm bug, or maybe a Boehm-on-Windows-specific issue, and
11 # skip.
12 if sys.platform == 'win32':
13 import py
14 py.test.skip("crashes on Windows (Boehm issue?)")
15
16
17 class TestTranslationCallAssemblerX86(TranslationTestCallAssembler):
18 def _check_cbuilder(self, cbuilder):
19 #We assume here that we have sse2. If not, the CPUClass
20 # needs to be changed to CPU386_NO_SSE2, but well.
21 if WORD == 4 and sys.platform != 'win32':
22 assert '-msse2' in cbuilder.eci.compile_extra
23 assert '-mfpmath=sse' in cbuilder.eci.compile_extra