summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorDmitry Ivanov <ethercrow@gmail.com>2019-02-17 16:40:19 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-02-20 10:11:28 -0500
commit2e96ce1fced5ea4f005edea2eeab50f67acb9114 (patch)
treec3668f9b12af1b65f2a4fc08baca43d40d3e56da /testsuite/driver
parentaa79f65c06fbe2bbca08de1d02b30ee4fa53d1b4 (diff)
downloadhaskell-2e96ce1fced5ea4f005edea2eeab50f67acb9114.tar.gz
Test bit-manipulating primops under respective arch flags like -msse4.2
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/cpu_features.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/driver/cpu_features.py b/testsuite/driver/cpu_features.py
index 7716306bd6..7b4340b61c 100644
--- a/testsuite/driver/cpu_features.py
+++ b/testsuite/driver/cpu_features.py
@@ -54,12 +54,10 @@ def have_cpu_feature(feature):
A testsuite predicate for testing the availability of CPU features.
"""
assert feature in SUPPORTED_CPU_FEATURES
+ global cpu_feature_cache
if cpu_feature_cache is None:
cpu_feature_cache = get_cpu_features()
print('Found CPU features:', ' '.join(cpu_feature_cache))
- # Sanity checking
- assert all(feat in SUPPORTED_CPU_FEATURES
- for feat in cpu_feature_cache)
return feature in cpu_feature_cache