Reduce debug unit tests runtime even more

In single.cpp featuremask with AVX512 features is not relevant to non-x86 platforms,
and just extends the runtime for no reason.
This commit is contained in:
Konstantinos Margaritis
2023-10-05 19:12:38 +03:00
parent e369681ce2
commit 22a24f12ea
4 changed files with 169 additions and 0 deletions

View File

@@ -363,9 +363,11 @@ static const unsigned validModes[] = {
// Mode bits for switching off various architecture features
static const unsigned long long featureMask[] = {
~0ULL, /* native */
#if defined(ARCH_IA32) || defined(ARCH_X86_64)
~(HS_CPU_FEATURES_AVX2 | HS_CPU_FEATURES_AVX512 | HS_CPU_FEATURES_AVX512VBMI), /* no avx2 */
~(HS_CPU_FEATURES_AVX512 | HS_CPU_FEATURES_AVX512VBMI), /* no avx512 */
~HS_CPU_FEATURES_AVX512VBMI, /* no avx512vbmi */
#endif
};
INSTANTIATE_TEST_CASE_P(Single,