Add the CPU flag for AVX-512 integer fused multiply-add instructions.
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
---
lib/librte_eal/common/arch/x86/rte_cpuflags.c | 1 +
lib/librte_eal/common/include/arch/x86/rte_cpuflags.h | 1 +
2 files changed, 2 insertions(+)
@@ -122,6 +122,7 @@ const struct feature_entry rte_cpu_feature_table[] = {
FEAT_DEF(INVTSC, 0x80000007, 0, RTE_REG_EDX, 8)
FEAT_DEF(AVX512DQ, 0x00000007, 0, RTE_REG_EBX, 17)
+ FEAT_DEF(AVX512IFMA, 0x00000007, 0, RTE_REG_EBX, 21)
};
int
@@ -114,6 +114,7 @@ enum rte_cpu_flag_t {
RTE_CPUFLAG_INVTSC, /**< INVTSC */
RTE_CPUFLAG_AVX512DQ, /**< AVX512 Doubleword and Quadword */
+ RTE_CPUFLAG_AVX512IFMA, /**< AVX512 Integer Fused Multiply-Add */
/* The last item */
RTE_CPUFLAG_NUMFLAGS, /**< This should always be the last! */