Ejemplo n.º 1
0
def no_vector_backend():
    import platform
    if platform.machine().startswith('x86'):
        from rpython.jit.backend.x86.detect_feature import detect_sse4_2
        return not detect_sse4_2()
    if platform.machine().startswith('ppc'):
        from rpython.jit.backend.ppc.detect_feature import detect_vsx
        return not detect_vsx()
    if platform.machine() == "s390x":
        from rpython.jit.backend.zarch.detect_feature import detect_simd_z
        return not detect_simd_z()
    return True
Ejemplo n.º 2
0
def no_vector_backend():
    import platform
    if platform.machine().startswith('x86'):
        from rpython.jit.backend.x86.detect_feature import detect_sse4_2
        return not detect_sse4_2()
    if platform.machine().startswith('ppc'):
        from rpython.jit.backend.ppc.detect_feature import detect_vsx
        return not detect_vsx()
    if platform.machine() == "s390x":
        from rpython.jit.backend.zarch.detect_feature import detect_simd_z
        return not detect_simd_z()
    return True
Ejemplo n.º 3
0
def no_vector_backend():
    if IS_X86:
        from rpython.jit.backend.x86.detect_feature import detect_sse4_2
        if sys.maxsize < 2**31:
            return True    
        return not detect_sse4_2()
    if platform.machine().startswith('ppc'):
        from rpython.jit.backend.ppc.detect_feature import detect_vsx
        return not detect_vsx()
    if platform.machine() == "s390x":
        from rpython.jit.backend.zarch.detect_feature import detect_simd_z
        return not detect_simd_z()
    return True
Ejemplo n.º 4
0
 def supports_vector_ext(self):
     return detect_simd_z()
Ejemplo n.º 5
0
 def setup_once(self, asm):
     if detect_simd_z():
         self.enable(16, accum=True)
         asm.setup_once_vector()
     self._setup = True
Ejemplo n.º 6
0
 def supports_vector_ext(self):
     return detect_simd_z()
Ejemplo n.º 7
0
 def setup_once(self, asm):
     if detect_simd_z():
         self.enable(16, accum=True)
         asm.setup_once_vector()
     self._setup = True