]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
clang 16 as well
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 4 Oct 2023 19:07:34 +0000 (22:07 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 4 Oct 2023 19:07:34 +0000 (22:07 +0300)
src/util/supervector/arch/ppc64el/impl.cpp
unit/internal/simd_utils.cpp

index a1db21eea44407fbc73c2e9147b89b4cb2c8bff9..add84418a939af9379561faddd0c8d133753944b 100644 (file)
@@ -158,7 +158,7 @@ really_inline SuperVector<16>::SuperVector(uint32_t const other)
     u.u32x4[0] = vec_splats(static_cast<uint32_t>(other));
 }
 
-#if defined(__clang__) && (__clang_major__ == 15)
+#if defined(__clang__) && (__clang_major__ >= 15)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
 #endif // defined(__clang__) && (__clang_major__ == 15)
@@ -168,7 +168,7 @@ really_inline SuperVector<16>::SuperVector(int64_t const other)
 {
     u.s64x2[0] = static_cast<int64x2_t>(vec_splats(static_cast<ulong64_t>(other)));
 }
-#if defined(__clang__) && (__clang_major__ == 15)
+#if defined(__clang__) && (__clang_major__ >= 15)
 #pragma clang diagnostic pop
 #endif // defined(__clang__) && (__clang_major__ == 15)
 
@@ -273,7 +273,7 @@ really_inline SuperVector<16> SuperVector<16>::eq(SuperVector<16> const &b) cons
     return (*this == b);
 }
 
-#if defined(__clang__) && (__clang_major__ == 15)
+#if defined(__clang__) && (__clang_major__ >= 15)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
 #endif // defined(__clang__) && (__clang_major__ == 15)
@@ -287,7 +287,7 @@ SuperVector<16>::comparemask(void) const {
     vec_ste(static_cast<uint32x4_t>(bitmask), 0, &movemask);
     return movemask;
 }
-#if defined(__clang__) && (__clang_major__ == 15)
+#if defined(__clang__) && (__clang_major__ >= 15)
 #pragma clang diagnostic pop
 #endif // defined(__clang__) && (__clang_major__ == 15)
 
index dd7bae9e4b3b019e65b0d89be999f26e3fd8501d..7ebd013a554924d20801d7d3a2d25ac97f1f0477 100644 (file)
@@ -673,13 +673,13 @@ TEST(SimdUtilsTest, movq) {
     int64x2_t a = { 0x123456789abcdefLL, ~0LL };
     simd = vreinterpretq_s32_s64(a);
 #elif defined(ARCH_PPC64EL)
-#if defined(__clang__) && (__clang_major__ == 15)
+#if defined(__clang__) && (__clang_major__ >= 15)
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
 #endif // defined(__clang__) && (__clang_major__ == 15)
     int64x2_t a = {0x123456789abcdefLL, ~0LL };
     simd = static_cast<m128>(a);
-#if defined(__clang__) && (__clang_major__ == 15)
+#if defined(__clang__) && (__clang_major__ >= 15)
 #pragma clang diagnostic pop
 #endif // defined(__clang__) && (__clang_major__ == 15)
 #endif