Date: Sun, 25 Sep 2022 19:12:31 +0200 From: Christian Weisgerber <naddy@mips.inka.de> To: freebsd-current@freebsd.org Subject: Did clang 14 lose some intrinsics support? Message-ID: <YzCL/%2BUEhLy7kHaL@lorvorc.mips.inka.de>
next in thread | raw e-mail | index | archive | help
Did we lose support for SSSE3 and AVX2 intrinsics on amd64 with clang 14? I don't have access to an up-to-date -CURRENT box. Can somebody run the script at the end and report the output? Those checks are found in the wild, I extracted them from the audio/flac port. So far, what I'm seeing: ===> clang version 13.0.0 #define AVX2_SUPPORTED 1 #define AVX_SUPPORTED 1 #define FMA_SUPPORTED 1 #define SSE2_SUPPORTED 1 #define SSE4_1_SUPPORTED 1 #define SSE_SUPPORTED 1 #define SSSE3_SUPPORTED 1 ===> clang version 14.0.5 #define AVX_SUPPORTED 1 #define FMA_SUPPORTED 1 #define SSE2_SUPPORTED 1 #define SSE4_1_SUPPORTED 1 #define SSE_SUPPORTED 1 -------------------> #!/bin/sh (cc -E -dM - | fgrep SUPPORTED) <<EOF #if __has_builtin(__builtin_ia32_maxps) #define SSE_SUPPORTED 1 #endif #if __has_builtin(__builtin_ia32_pmuludq128) #define SSE2_SUPPORTED 1 #endif #if __has_builtin(__builtin_ia32_pabsd128) #define SSSE3_SUPPORTED 1 #endif #if __has_builtin(__builtin_ia32_pmuldq128) #define SSE4_1_SUPPORTED 1 #endif #if __has_builtin(__builtin_ia32_maxps256) #define AVX_SUPPORTED 1 #endif #if __has_builtin(__builtin_ia32_pabsd256) #define AVX2_SUPPORTED 1 #endif #if __has_builtin(__builtin_ia32_vfmaddps) #define FMA_SUPPORTED 1 #endif EOF <------------------- -- Christian "naddy" Weisgerber naddy@mips.inka.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YzCL/%2BUEhLy7kHaL>