public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96895] New: ABI of returning V1DF differs between GCC and clang
@ 2020-09-02  8:24 rguenth at gcc dot gnu.org
  2020-09-02  8:29 ` [Bug target/96895] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-02  8:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96895
           Summary: ABI of returning V1DF differs between GCC and clang
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

clang and GCC differ in returning v1df:

typedef double v1df __attribute__((vector_size(8)));
v1df foo (v1df x)
{
  return x;
}

clang returns in %xmm0 while GCC returns by invisible reference (thus in
memory).
v1df arguments are passed on the stack with both compilers.

GCC behaves this way because the v1df type has BLKmode.  If we assign
the type DFmode (V1DFmode is unavailable) then GCC passes and returns in %xmm0.
The target should likely not work on modes here but on types.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-12-04 10:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02  8:24 [Bug target/96895] New: ABI of returning V1DF differs between GCC and clang rguenth at gcc dot gnu.org
2020-09-02  8:29 ` [Bug target/96895] " rguenth at gcc dot gnu.org
2020-09-02 12:14 ` matz at gcc dot gnu.org
2020-09-02 12:15 ` hjl.tools at gmail dot com
2020-09-02 12:18 ` hjl.tools at gmail dot com
2020-09-02 14:08 ` rguenth at gcc dot gnu.org
2020-09-02 14:16 ` rguenth at gcc dot gnu.org
2020-09-02 14:28 ` matz at gcc dot gnu.org
2023-12-04 10:18 ` egallager at gcc dot gnu.org

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).