diff --git a/core/combo/TARGET_linux-x86_64.mk b/core/combo/TARGET_linux-x86_64.mk index f8e287820..2adb157ef 100644 --- a/core/combo/TARGET_linux-x86_64.mk +++ b/core/combo/TARGET_linux-x86_64.mk @@ -117,6 +117,9 @@ endif ifeq ($(ARCH_X86_HAVE_SSE4_2),true) TARGET_GLOBAL_CFLAGS += -msse4.2 endif +ifeq ($(ARCH_X86_HAVE_POPCNT),true) + TARGET_GLOBAL_CFLAGS += -mpopcnt +endif ifeq ($(ARCH_X86_HAVE_AVX),true) TARGET_GLOBAL_CFLAGS += -mavx endif diff --git a/core/combo/arch/x86_64/x86_64.mk b/core/combo/arch/x86_64/x86_64.mk index 9d2b62013..08dd9cd86 100755 --- a/core/combo/arch/x86_64/x86_64.mk +++ b/core/combo/arch/x86_64/x86_64.mk @@ -8,6 +8,9 @@ ARCH_X86_HAVE_SSSE3 := true ARCH_X86_HAVE_MOVBE := false # Only supported on Atom. ARCH_X86_HAVE_POPCNT := true +ARCH_X86_HAVE_SSE4 := true +ARCH_X86_HAVE_SSE4_1 := true +ARCH_X86_HAVE_SSE4_2 := true # CFLAGS for this arch