]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
use the conditional in the right way
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 4 Oct 2023 17:35:58 +0000 (20:35 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 4 Oct 2023 17:35:58 +0000 (20:35 +0300)
src/util/arch/ppc64el/simd_utils.h
src/util/supervector/arch/ppc64el/impl.cpp
unit/internal/simd_utils.cpp

index 7b0f62a08794149f07ed99a921d4e65a9f68a9d4..15446e871c83e894e910fabf354de829f68b3088 100644 (file)
@@ -46,6 +46,7 @@
 #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)
 
 typedef __vector unsigned long long int  uint64x2_t;
 typedef __vector   signed long long int   int64x2_t;
@@ -424,6 +425,7 @@ m128 set2x64(u64a hi, u64a lo) {
     return (m128) v;
 }
 
+#if defined(__clang__) && (__clang_major__ == 15)
 #pragma clang diagnostic pop
 #endif // defined(__clang__) && (__clang_major__ == 15)
 
index 05aaba41386e1bbf568593f1199ed40946432287..cd776d5aac634e842dfaaef2d2915bc11e01c0a1 100644 (file)
@@ -161,12 +161,14 @@ really_inline SuperVector<16>::SuperVector(uint32_t const other)
 #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)
 template<>
 template<>
 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)
 #pragma clang diagnostic pop
 #endif // defined(__clang__) && (__clang_major__ == 15)
 
index 510a0ed19397d8f1ac1baf1df4d12f568db6fc1f..dd7bae9e4b3b019e65b0d89be999f26e3fd8501d 100644 (file)
@@ -676,8 +676,10 @@ TEST(SimdUtilsTest, movq) {
 #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)
 #pragma clang diagnostic pop
 #endif // defined(__clang__) && (__clang_major__ == 15)
 #endif