testsuite: Add predicate for CPU feature availability
authorBen Gamari <ben@smart-cactus.org>
Thu, 27 Dec 2018 19:41:01 +0000 (14:41 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 27 Jan 2019 13:32:12 +0000 (08:32 -0500)
commit1dd251b861c98c7b42a117b820afef5020745585
tree7b96692309adbb772a971996d7881b29f4b6aeab
parent3cbee255cd550e49e3265257fd2955ce8e6a351a
testsuite: Add predicate for CPU feature availability

Previously testing code-generation for ISA extensions was nearly impossible
since we had no ability to determine whether the host supports the needed
extension. Here we fix this by introducing a simple /proc/cpuinfo-based
testsuite predicate. We really ought to
testsuite/driver/cpu_features.py [new file with mode: 0644]
testsuite/driver/runtests.py
testsuite/driver/testlib.py