bugfix: add vbmi case for test in database.cpp

This commit is contained in:
Hong, Yang A 2021-06-07 16:24:51 +08:00 committed by Konstantinos Margaritis
parent 6765b35d48
commit 4fb3a48dfd

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2015-2017, Intel Corporation * Copyright (c) 2015-2021, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
@ -56,6 +56,10 @@ TEST(DB, flagsToPlatform) {
p.cpu_features |= HS_CPU_FEATURES_AVX512; p.cpu_features |= HS_CPU_FEATURES_AVX512;
#endif #endif
#if defined(HAVE_AVX512VBMI)
p.cpu_features |= HS_CPU_FEATURES_AVX512VBMI;
#endif
platform_t pp = target_to_platform(target_t(p)); platform_t pp = target_to_platform(target_t(p));
ASSERT_EQ(pp, hs_current_platform); ASSERT_EQ(pp, hs_current_platform);
} }