From 32619a0294fe1899948e3ccbb7407625a7db8ded Mon Sep 17 00:00:00 2001 From: mstembera <5421953+mstembera@users.noreply.github.com> Date: Fri, 3 Jul 2026 20:24:27 +0200 Subject: [PATCH] Enable MoveSorter for AVX512 STC: https://tests.stockfishchess.org/tests/view/6a42f773f97ff95f7879518a LLR: 2.93 (-2.94,2.94) <0.00,2.00> Total: 132992 W: 34679 L: 34248 D: 64065 Ptnml(0-2): 318, 14004, 37436, 14405, 333 No functional change Credit to @anematode for the original PR! closes https://github.com/official-stockfish/Stockfish/pull/6941 No functional change --- src/movepick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index f736c295b..5be46dc71 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -56,7 +56,7 @@ enum Stages { QCAPTURE }; -#ifdef USE_AVX512ICL +#ifdef USE_AVX512 // Load the Move, and the ExtMove value, into all lanes of 512-bit registers static void splat_extmove(const ExtMove& m, __m512i& move, __m512i& value) { move = _mm512_set1_epi32(m.raw()); @@ -111,7 +111,7 @@ struct MoveSorter { void partial_insertion_sort(ExtMove* begin, ExtMove* end, int limit) { ExtMove *sortedEnd = begin, *p = begin + 1; -#ifdef USE_AVX512ICL +#ifdef USE_AVX512 if (begin == end) return;