From 69cfe28f315b559cb1a07c0806266aa2850b5d4b Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Wed, 12 Aug 2020 17:21:12 +0200 Subject: [PATCH 1/1] Output the SSE2 flag in compiler_info was missing in the list of outputs, slightly reorder flags. explicitly add -msse2 if USE_SSE2 (is implicit already, -msse -m64). closes https://github.com/official-stockfish/Stockfish/pull/2990 No functional change. --- src/Makefile | 2 +- src/misc.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 0804cdd5..027cc3e3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -468,7 +468,7 @@ ifeq ($(neon),yes) endif ifeq ($(arch),x86_64) - CXXFLAGS += -DUSE_SSE2 + CXXFLAGS += -msse2 -DUSE_SSE2 endif ### 3.7 pext diff --git a/src/misc.cpp b/src/misc.cpp index ab52d30b..1cee4726 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -225,6 +225,7 @@ const std::string compiler_info() { #if defined(USE_AVX512) compiler += " AVX512"; #endif + compiler += (HasPext ? " BMI2" : ""); #if defined(USE_AVX2) compiler += " AVX2"; #endif @@ -234,11 +235,14 @@ const std::string compiler_info() { #if defined(USE_SSSE3) compiler += " SSSE3"; #endif - compiler += (HasPext ? " BMI2" : ""); - compiler += (HasPopCnt ? " POPCNT" : ""); + #if defined(USE_SSE2) + compiler += " SSE2"; + #endif + compiler += (HasPopCnt ? " POPCNT" : ""); #if defined(USE_MMX) compiler += " MMX"; #endif + #if !defined(NDEBUG) compiler += " DEBUG"; #endif -- 2.39.2