mk: predefine AVX512 macro for compiler

Predefine AVX512 macro if AVX512 is enabled by compiler.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
This commit is contained in:
Zhihong Wang 2016-01-17 22:05:11 -05:00 committed by Thomas Monjalon
parent 308df2bfba
commit b0c1e0db6d

View File

@ -89,6 +89,10 @@ ifneq ($(filter $(AUTO_CPUFLAGS),__AVX2__),)
CPUFLAGS += AVX2 CPUFLAGS += AVX2
endif endif
ifneq ($(filter $(AUTO_CPUFLAGS),__AVX512F__),)
CPUFLAGS += AVX512F
endif
# IBM Power CPU flags # IBM Power CPU flags
ifneq ($(filter $(AUTO_CPUFLAGS),__PPC64__),) ifneq ($(filter $(AUTO_CPUFLAGS),__PPC64__),)
CPUFLAGS += PPC64 CPUFLAGS += PPC64