From a9f6f7ad390fea938c45a0e4b3b8feb2c1841edf Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 6 Mar 2021 14:35:49 +0100 Subject: [PATCH] Remove spurious AVX512 requirement and add AVX2/FMA3 guard --- kernel/x86_64/srot_microk_haswell-2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/x86_64/srot_microk_haswell-2.c b/kernel/x86_64/srot_microk_haswell-2.c index 8e245cc8f..b5545726e 100644 --- a/kernel/x86_64/srot_microk_haswell-2.c +++ b/kernel/x86_64/srot_microk_haswell-2.c @@ -1,5 +1,4 @@ -/* need a new enough GCC for avx512 support */ -#if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX512CD__)) || (defined(__clang__) && __clang_major__ >= 9)) +#if defined(HAVE_FMA3) && defined(HAVE_AVX2) #define HAVE_SROT_KERNEL 1