From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52488384AB5F; Mon, 22 Apr 2024 17:18:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52488384AB5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713806301; bh=m56K9gEW+mF/BVSz5V/AoNhKgGkAAxlhBFdpKtHJzos=; h=From:To:Subject:Date:In-Reply-To:References:From; b=D8hH6lRON72hCDuUxAfGAqmxfIjE4AuNYwqFloSLgUbgoqrg11QAIw4ZByUpn8ecb VCmQtksIn+xouqXkpmyqip8opq7LTVVjrWKF9Voo4rr1FvdQ4CF74cl4FkpStr+8o4 3oTyIHaEwF9hWiX7AiOJKzNngtvTHDlYLCRVaZ+c= From: "lee.imple at gmail dot com" 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 17:18:18 +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: lee.imple at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: 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 --- Comment #11 from Imple Lee --- > 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 lik= ely be passed via registers (as long as the psABI allows). Great! It does work as intended. Thank you for telling me that. Maybe all I need is just to read the docs on cppref more carefully :|=