Skip to content

Commit 40cab24

Browse files
committed
Try to fix windows CI
1 parent b4ce872 commit 40cab24

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

libcxx/include/__algorithm/mismatch.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,19 @@ __mismatch(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Pred& __pred, _Pro
5656

5757
#if _LIBCPP_VECTORIZE_ALGORITHMS
5858

59+
template <class _ValueType>
60+
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<long long, 2>
61+
__reverse_vector(__simd_vector<long long, 2>& __cmp_res) {
62+
# if defined(_LIBCPP_BIG_ENDIAN)
63+
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 1, 0);
64+
# endif
65+
return __cmp_res;
66+
}
67+
5968
template <class _ValueType>
6069
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<long, 2>
6170
__reverse_vector(__simd_vector<long, 2>& __cmp_res) {
6271
# if defined(_LIBCPP_BIG_ENDIAN)
63-
static_assert(__native_vector_size<long> == 2, "The __native_vector_size has to be 2");
6472
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 1, 0);
6573
# endif
6674
return __cmp_res;
@@ -70,7 +78,6 @@ template <class _ValueType>
7078
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<long, 4>
7179
__reverse_vector(__simd_vector<long, 4>& __cmp_res) {
7280
# if defined(_LIBCPP_BIG_ENDIAN)
73-
static_assert(__native_vector_size<long> == 4, "The __native_vector_size has to be 4");
7481
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 3, 2, 1, 0);
7582
# endif
7683
return __cmp_res;
@@ -80,7 +87,6 @@ template <class _ValueType>
8087
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<int, 8>
8188
__reverse_vector(__simd_vector<int, 8>& __cmp_res) {
8289
# if defined(_LIBCPP_BIG_ENDIAN)
83-
static_assert(__native_vector_size<int> == 8, "The __native_vector_size has to be 8");
8490
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 7, 6, 5, 4, 3, 2, 1, 0);
8591
# endif
8692
return __cmp_res;
@@ -90,7 +96,6 @@ template <class _ValueType>
9096
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<int, 4>
9197
__reverse_vector(__simd_vector<int, 4>& __cmp_res) {
9298
# if defined(_LIBCPP_BIG_ENDIAN)
93-
static_assert(__native_vector_size<int> == 4, "The __native_vector_size has to be 4");
9499
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 3, 2, 1, 0);
95100
# endif
96101
return __cmp_res;
@@ -100,7 +105,6 @@ template <class _ValueType>
100105
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<_ValueType, 8>
101106
__reverse_vector(__simd_vector<_ValueType, 8>& __cmp_res) {
102107
# if defined(_LIBCPP_BIG_ENDIAN)
103-
static_assert(__native_vector_size<_ValueType> == 8, "The __native_vector_size has to be 8");
104108
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 7, 6, 5, 4, 3, 2, 1, 0);
105109
# endif
106110
return __cmp_res;
@@ -110,7 +114,6 @@ template <class _ValueType>
110114
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<_ValueType, 16>
111115
__reverse_vector(__simd_vector<_ValueType, 16> __cmp_res) {
112116
# if defined(_LIBCPP_BIG_ENDIAN)
113-
static_assert(__native_vector_size<_ValueType> == 16, "The __native_vector_size has to be 16");
114117
__cmp_res = __builtin_shufflevector(__cmp_res, __cmp_res, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0);
115118
# endif
116119
return __cmp_res;
@@ -120,7 +123,6 @@ template <class _ValueType>
120123
_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __simd_vector<_ValueType, 32>
121124
__reverse_vector(__simd_vector<_ValueType, 32> __cmp_res) {
122125
# if defined(_LIBCPP_BIG_ENDIAN)
123-
static_assert(__native_vector_size<_ValueType> == 32, "The __native_vector_size has to be 32");
124126
__cmp_res = __builtin_shufflevector(
125127
__cmp_res,
126128
__cmp_res,

0 commit comments

Comments
 (0)