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++/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	[thread overview]
Message-ID: <bug-114417-4-tyfmdS6fEr@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114417-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114417

Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkretz at gcc dot gnu.org

--- Comment #9 from Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> ---
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<T, N>.
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).

  parent reply	other threads:[~2024-04-22 12:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 16:05 [Bug libstdc++/114417] New: simd parameters are passed by memory on x64 , not using the available sse registers lee.imple at gmail dot com
2024-03-21 16:09 ` [Bug target/114417] " pinskia at gcc dot gnu.org
2024-03-21 16:16 ` lee.imple at gmail dot com
2024-03-21 16:17 ` lee.imple at gmail dot com
2024-03-21 16:26 ` [Bug target/114417] std::experimental::simd " pinskia at gcc dot gnu.org
2024-03-21 16:28 ` pinskia at gcc dot gnu.org
2024-03-21 16:34 ` [Bug libstdc++/114417] std::experimental::simd is not a POD (by ABI definitions) and is always passed by reference instead of by value pinskia at gcc dot gnu.org
2024-03-21 16:37 ` pinskia at gcc dot gnu.org
2024-03-21 18:01 ` lee.imple at gmail dot com
2024-03-22  1:37 ` de34 at live dot cn
2024-04-22 12:46 ` mkretz at gcc dot gnu.org [this message]
2024-04-22 12:48 ` mkretz at gcc dot gnu.org
2024-04-22 17:18 ` lee.imple at gmail dot com

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-114417-4-tyfmdS6fEr@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: link
Be 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).