]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix compilation error on CentOS 8 Stream
authorBruno Haible <bruno@clisp.org>
Thu, 16 Jan 2025 21:10:26 +0000 (22:10 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 16 Jan 2025 22:16:53 +0000 (22:16 +0000)
* configure.ac (USE_AVX512_CRC32): Set to false if the function
_mm512_set_epi8 does not exist.

configure.ac

index e3c8f4c3091ee4be01890ea91c3e860b062c9bb7..bf6da2a5a8873157f52ed9ddcf942be30f881a93 100644 (file)
@@ -727,6 +727,10 @@ AC_LINK_IFELSE(
     main (void)
     {
       __m512i a, b;
+      a = _mm512_set_epi8 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+                           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
       a = _mm512_clmulepi64_epi128 (a, b, 0x00);
       a = _mm512_shuffle_epi8 (a, b);
       return __builtin_cpu_supports ("avx512bw") &&