git: cc1632ed3075 - stable/14 - libcxx simd_utils.h: only enable _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS for clang >= 15, since older versions do not support the required builtins.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Dec 2024 11:18:33 UTC
The branch stable/14 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=cc1632ed307517e28b58505abc2480f67780c778
commit cc1632ed307517e28b58505abc2480f67780c778
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-08-05 20:05:46 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-12-01 11:17:08 +0000
libcxx simd_utils.h: only enable _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS for
clang >= 15, since older versions do not support the required builtins.
PR: 280562
MFC after: 1 month
(cherry picked from commit 6846ab2fb6630ca91ab0a71350d77358e521c1c7)
---
contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h b/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h
index 549197be8018..cb5c93675cad 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/simd_utils.h
@@ -28,7 +28,7 @@ _LIBCPP_PUSH_MACROS
#include <__undef_macros>
// TODO: Find out how altivec changes things and allow vectorizations there too.
-#if _LIBCPP_STD_VER >= 14 && defined(_LIBCPP_CLANG_VER) && !defined(__ALTIVEC__)
+#if _LIBCPP_STD_VER >= 14 && (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1500) && !defined(__ALTIVEC__)
# define _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS 1
#else
# define _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS 0