Debian Codegraph @

rpython/jit/backend/ppc/test/test_ppcvector.py

raw symbols SCIP
1 import py
2 from rpython.jit.backend.ppc.test import test_basic
3 from rpython.jit.metainterp.test import test_zvector
4 from rpython.jit.backend.ppc.detect_feature import detect_vsx
5
6
7 py.test.skip("skipping, support for vectorization is not fully maintained "
8 "nowadays and this gives 'Illegal instruction' on ppc110")
9
10
11 class TestBasic(test_basic.JitPPCMixin, test_zvector.VectorizeTests):
12 # for the individual tests see
13 # ====> ../../../metainterp/test/test_basic.py
14 def setup_method(self, method):
15 clazz = self.CPUClass
16 def init(*args, **kwargs):
17 cpu = clazz(*args, **kwargs)
18 # > 95% can be executed, thus let's cheat here a little
19 cpu.supports_guard_gc_type = True
20 return cpu
21 self.CPUClass = init
22
23 def supports_vector_ext(self):
24 return detect_vsx()
25
26 def test_list_vectorize(self):
27 pass # needs support_guard_gc_type, disable for now
28
29 enable_opts = 'intbounds:rewrite:virtualize:string:earlyforce:pure:heap:unroll'
30