]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
bugfix: add vbmi case for test in database.cpp
authorHong, Yang A <yang.a.hong@intel.com>
Mon, 7 Jun 2021 08:24:51 +0000 (16:24 +0800)
committerKonstantinos Margaritis <markos@freevec.org>
Tue, 5 Sep 2023 10:52:10 +0000 (13:52 +0300)
unit/internal/database.cpp

index 8f0c1a695de9a8ba49ca8c4c11499f7f62694410..0070fbc96565cdcb7bce778eac3ffd6d04ef0798 100644 (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
  * modification, are permitted provided that the following conditions are met:
@@ -56,6 +56,10 @@ TEST(DB, flagsToPlatform) {
     p.cpu_features |= HS_CPU_FEATURES_AVX512;
 #endif
 
+#if defined(HAVE_AVX512VBMI)
+    p.cpu_features |= HS_CPU_FEATURES_AVX512VBMI;
+#endif
+
     platform_t pp = target_to_platform(target_t(p));
     ASSERT_EQ(pp, hs_current_platform);
 }