Fix test related to AVX instructions.
This commit is contained in:
parent
f3e7b39bc9
commit
8073b67c96
1 changed files with 7 additions and 3 deletions
|
|
@ -964,9 +964,13 @@ class TestCPUSupport(TestCase):
|
||||||
|
|
||||||
def test_cpu_support6(self):
|
def test_cpu_support6(self):
|
||||||
features = []
|
features = []
|
||||||
mattrs = ','.join(map(lambda s: '-%s' % s, features))
|
from llvm.workaround.avx_support import detect_avx_support
|
||||||
print('disable mattrs', mattrs)
|
if not detect_avx_support():
|
||||||
self._template(mattrs)
|
print 'Skipping: no AVX'
|
||||||
|
else:
|
||||||
|
mattrs = ','.join(map(lambda s: '-%s' % s, features))
|
||||||
|
print('disable mattrs', mattrs)
|
||||||
|
self._template(mattrs)
|
||||||
|
|
||||||
tests.append(TestCPUSupport)
|
tests.append(TestCPUSupport)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue