clang 15 (but not 16) fails on ppc64le with -Wdeprecate-lax-vec-conv-all

This commit is contained in:
Konstantinos Margaritis
2023-10-04 20:09:45 +03:00
parent 9aa61440ea
commit b7d1bc0298
3 changed files with 21 additions and 6 deletions

View File

@@ -673,8 +673,11 @@ TEST(SimdUtilsTest, movq) {
int64x2_t a = { 0x123456789abcdefLL, ~0LL };
simd = vreinterpretq_s32_s64(a);
#elif defined(ARCH_PPC64EL)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecate-lax-vec-conv-all"
int64x2_t a = {0x123456789abcdefLL, ~0LL };
simd = (m128) a;
simd = static_cast<m128>(a);
#pragma clang diagnostic pop
#endif
#endif
r = movq(simd);