Author: Richard Plangger <[email protected]>
Branch: ppc-vsx-support
Changeset: r85178:376a87cb95fe
Date: 2016-06-15 15:11 +0200
http://bitbucket.org/pypy/pypy/changeset/376a87cb95fe/
Log: test case skip (for cpu that does not support SIMD) changed a little
now the tests are failing because of missing implementations of ppc
diff --git a/rpython/jit/backend/ppc/runner.py
b/rpython/jit/backend/ppc/runner.py
--- a/rpython/jit/backend/ppc/runner.py
+++ b/rpython/jit/backend/ppc/runner.py
@@ -7,7 +7,7 @@
from rpython.jit.backend.ppc.arch import WORD
from rpython.jit.backend.ppc.codebuilder import PPCBuilder
from rpython.jit.backend.ppc import register as r
-
+from rpython.jit.backend.ppc.detect_feature import detect_vsx
class PPC_CPU(AbstractLLCPU):
diff --git a/rpython/jit/backend/ppc/test/test_ppcvector.py
b/rpython/jit/backend/ppc/test/test_ppcvector.py
--- a/rpython/jit/backend/ppc/test/test_ppcvector.py
+++ b/rpython/jit/backend/ppc/test/test_ppcvector.py
@@ -1,6 +1,7 @@
import py
from rpython.jit.backend.ppc.test import test_basic
from rpython.jit.metainterp.test import test_vector
+from rpython.jit.backend.ppc.detect_feature import detect_vsx
class TestBasic(test_basic.JitPPCMixin, test_vector.VectorizeTests):
@@ -15,6 +16,9 @@
return cpu
self.CPUClass = init
+ def supports_vector_ext(self):
+ return detect_vsx()
+
def test_list_vectorize(self):
pass # needs support_guard_gc_type, disable for now
diff --git a/rpython/jit/backend/x86/test/test_x86vector.py
b/rpython/jit/backend/x86/test/test_x86vector.py
--- a/rpython/jit/backend/x86/test/test_x86vector.py
+++ b/rpython/jit/backend/x86/test/test_x86vector.py
@@ -6,7 +6,6 @@
from rpython.jit.metainterp.test import test_vector
from rpython.rtyper.lltypesystem import lltype
-
class TestBasic(test_basic.Jit386Mixin, test_vector.VectorizeTests):
# for the individual tests see
# ====> ../../../metainterp/test/test_basic.py
@@ -19,6 +18,9 @@
return cpu
self.CPUClass = init
+ def supports_vector_ext(self):
+ return self.CPUClass.vector_extension
+
def test_list_vectorize(self):
pass # needs support_guard_gc_type, disable for now
diff --git a/rpython/jit/metainterp/test/test_vector.py
b/rpython/jit/metainterp/test/test_vector.py
--- a/rpython/jit/metainterp/test/test_vector.py
+++ b/rpython/jit/metainterp/test/test_vector.py
@@ -16,8 +16,6 @@
from rpython.jit.backend.detect_cpu import getcpuclass
CPU = getcpuclass()
-if not CPU.vector_extension:
- py.test.skip("this cpu %s has no implemented vector backend" % CPU)
@specialize.argtype(0,1)
def malloc(T,n):
@@ -29,7 +27,8 @@
enable_opts =
'intbounds:rewrite:virtualize:string:earlyforce:pure:heap:unroll'
def setup_method(self, method):
- print "RUNNING", method.__name__
+ if not self.supports_vector_ext():
+ py.test.skip("this cpu %s has no implemented vector backend" % CPU)
def meta_interp(self, f, args, policy=None, vec=True, vec_all=False):
return ll_meta_interp(f, args, enable_opts=self.enable_opts,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit