]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
__builtin_constant_p is true in the wrong case on gcc 13.2. Exclude for now
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Fri, 6 Oct 2023 08:44:41 +0000 (11:44 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Fri, 6 Oct 2023 08:44:41 +0000 (11:44 +0300)
src/util/supervector/arch/x86/impl.cpp

index a807c84e362050457f3bdd248659c9722d42ebd0..3d232e497091b6536866d0a773bf7af8b164bd2f 100644 (file)
@@ -1145,7 +1145,7 @@ really_inline SuperVector<32> SuperVector<32>::loadu_maskz(void const *ptr, uint
 template<>
 really_inline SuperVector<32> SuperVector<32>::alignr(SuperVector<32> &other, int8_t offset)
 {
-#if defined(HAVE__BUILTIN_CONSTANT_P)
+#if defined(HAVE__BUILTIN_CONSTANT_P) && !(defined(__GNUC__) && (__GNUC__ == 13))
     if (__builtin_constant_p(offset)) {
         if (offset == 16) {
             return *this;