From 53835c957bcc4e6a4ffd13a3870e262048eef615 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 29 Oct 2024 07:36:29 -0700 Subject: [PATCH] tst_selftests: disable Valgrind tests with AVX512/AVX10 Valgrind does not support those instructions yet so these tests always fail. Skip them. When it gets support for them, we can do a version check. See https://bugs.kde.org/show_bug.cgi?id=383010 Change-Id: I954b2b6a9bbef1a31833fffd1cc4bc33dce353ed Reviewed-by: Allan Sandfeld Jensen (cherry picked from commit 0b41b81b9febc8f0dafd0a6a8e6571333e5415d3) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/testlib/selftests/tst_selftests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp index 08c3d657977..eda3d9afc7c 100644 --- a/tests/auto/testlib/selftests/tst_selftests.cpp +++ b/tests/auto/testlib/selftests/tst_selftests.cpp @@ -675,6 +675,10 @@ bool TestLogger::shouldIgnoreTest(const QString &test) const if (test == "benchlibcallgrind") { #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64)) && defined(Q_OS_LINUX) +# ifdef __AVX512F__ + WARN("Valgrind does not support AVX512/AVX10 as of the time of this writing"); + return true; +# endif // Check that it's actually available QProcess checkProcess; QStringList args{u"--version"_s};