From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E670C384AB52; Mon, 22 Apr 2024 12:46:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E670C384AB52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713789962; bh=ntQpd7tHDZ8k3LMyN1aZTXhIwYMgtMhXSC02PaKMxA4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tCmRYWfuQaxO/70EHdaYVZtIRx4h3PZ3NOoRummMUAheGULe0VJ2RctbFBbs+IoYb 8nwFayzR0NWRy7+r4YKC/47TjCz7I4j1CZd/2AQJaCXP7j2H8Kp3yvxrDDyLKDOt4i 1pXbAL8m1M6L4BQfwvCtDjoItdn18WMrfKXLTn4w= From: "mkretz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/114417] std::experimental::simd is not a POD (by ABI definitions) and is always passed by reference instead of by value Date: Mon, 22 Apr 2024 12:46:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mkretz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114417 Matthias Kretz (Vir) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkretz at gcc dot gnu.org --- Comment #9 from Matthias Kretz (Vir) --- Sorry for not noticing this PR earlier. Yes, this specific behavior of fixed_size follows a request from the C++ committee for the TS. It is not mandated by the TS wording, because the C++ spec has no means to require passing arguments via the stack or registers. That's beyond the abstract machine. It still asks for that behavior non-normatively, though. What you want to use instead is std::experimental::simd_abi::deduce_t. That'll give you a not-fixed_size ABI if one exists. And those will likely = be passed via registers (as long as the psABI allows).=