]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Fix vector facility (vx) check in test suite
authorAndreas Arnez <arnez@linux.ibm.com>
Tue, 6 Aug 2019 16:29:46 +0000 (18:29 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Fri, 9 Aug 2019 17:57:18 +0000 (19:57 +0200)
commit161d22f0af2c8ee9817df4334572a1a298e1df8a
tree29b2782001fd9612bedc77524bf3322e19635b51
parent36e793843e07914f65932def7d6b179b85a7a7ed
s390x: Fix vector facility (vx) check in test suite

When checking the prereqisuites of running a vector test case, it is not
sufficient to check for the appropriate CPU facility bit.  It must also be
verified that the kernel and hypervisor(s) have actually enabled the
vector facility.  There are various ways of checking this.  E.g., we could
try executing a vector instruction and handle any signals.  Or we can
check the HWCAP for the appropriate bit.  This patch does the latter.
tests/s390x_features.c