Makefile: Add a special set of default optimization options when building for the Haswell-specific x86_64h architecture designation.

git-svn-id: https://svn.eduke32.com/eduke32@5776 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2016-06-15 07:08:26 +00:00
parent b1b7f13a41
commit 619f3a7a8a

View file

@ -390,10 +390,15 @@ endif
ifndef OPTOPT ifndef OPTOPT
ifeq ($(findstring x86_64, $(IMPLICIT_ARCH)),x86_64) ifeq ($(findstring x86_64, $(IMPLICIT_ARCH)),x86_64)
ifeq ($(findstring x86_64h, $(IMPLICIT_ARCH)),x86_64h)
OPTOPT=-march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mpclmul -mavx -mrdrnd -mf16c -mfsgsbase -mavx2 -maes -mfma -mbmi -mbmi2
# -mcrc32 -mmovbe
else
ifeq ($(PLATFORM),DARWIN) ifeq ($(PLATFORM),DARWIN)
OPTOPT=-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 OPTOPT=-march=core2 -mmmx -msse -msse2 -msse3 -mssse3
endif endif
endif endif
endif
ifeq ($(findstring i386, $(IMPLICIT_ARCH)),i386) ifeq ($(findstring i386, $(IMPLICIT_ARCH)),i386)
ifeq ($(PLATFORM),DARWIN) ifeq ($(PLATFORM),DARWIN)
OPTOPT=-march=nocona -mmmx -msse -msse2 -msse3 OPTOPT=-march=nocona -mmmx -msse -msse2 -msse3