public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mkretz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/115575] experimental/simd/pr115454_find_last_set.cc FAILs Date: Fri, 21 Jun 2024 11:07:54 +0000 [thread overview] Message-ID: <bug-115575-4-3DqdFQbxTx@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-115575-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115575 --- Comment #5 from Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> --- Still trying to somehow verify on SPARC... diff --git a/libstdc++-v3/testsuite/experimental/simd/pr115454_find_last_set.cc b/libstdc++-v3/testsuite/experimental/simd/pr115454_find_last_set.cc index b47f19d3067..25a713b4e94 100644 --- a/libstdc++-v3/testsuite/experimental/simd/pr115454_find_last_set.cc +++ b/libstdc++-v3/testsuite/experimental/simd/pr115454_find_last_set.cc @@ -1,7 +1,7 @@ // { dg-options "-std=gnu++17" } // { dg-do run { target *-*-* } } // { dg-require-effective-target c++17 } -// { dg-additional-options "-march=x86-64-v4" { target avx512f } } +// { dg-additional-options "-march=x86-64-v4" { target avx512f_runtime } } // { dg-require-cmath "" } #include <experimental/simd> @@ -25,7 +25,9 @@ namespace stdx { using M8 = typename V<short, 8>::mask_type; using M4 = typename V<int, 4>::mask_type; - if constexpr (sizeof(M8) == sizeof(M4)) + if constexpr (sizeof(M8) == sizeof(M4) + && !std::is_same_v<M4, stdx::fixed_size_simd_mask<int, 4>>) + // fixed_size invariant: padding bits of masks are zero, the memcpy would violate that { M4 k; __builtin_memcpy(&__data(k), &__data(M8(true)), sizeof(M4));
next prev parent reply other threads:[~2024-06-21 11:07 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-06-21 7:39 [Bug libstdc++/115575] New: " ro at gcc dot gnu.org 2024-06-21 7:39 ` [Bug libstdc++/115575] " ro at gcc dot gnu.org 2024-06-21 9:24 ` redi at gcc dot gnu.org 2024-06-21 9:59 ` mkretz at gcc dot gnu.org 2024-06-21 10:18 ` mkretz at gcc dot gnu.org 2024-06-21 10:49 ` mkretz at gcc dot gnu.org 2024-06-21 11:07 ` mkretz at gcc dot gnu.org [this message] 2024-06-21 16:06 ` cvs-commit at gcc dot gnu.org 2024-06-21 16:07 ` cvs-commit at gcc dot gnu.org 2024-06-21 16:20 ` cvs-commit at gcc dot gnu.org 2024-06-21 16:26 ` cvs-commit at gcc dot gnu.org 2024-06-21 16:26 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-115575-4-3DqdFQbxTx@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).