git: 6846ab2fb663 - main - libcxx simd_utils.h: only enable _LIBCPP_HAS_ALGORITHM_VECTOR_UTILS for clang >= 15, since older versions do not support the required builtins.

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 23 Oct 2024 18:30:30 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=6846ab2fb6630ca91ab0a71350d77358e521c1c7

commit 6846ab2fb6630ca91ab0a71350d77358e521c1c7
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-08-05 20:05:46 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-10-23 18:26:36 +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
---
 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