public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96530] New: MMA built-ins reject typedefs of MMA types
@ 2020-08-07 21:38 bergner at gcc dot gnu.org
  2020-08-07 21:39 ` [Bug target/96530] " bergner at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bergner at gcc dot gnu.org @ 2020-08-07 21:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96530
           Summary: MMA built-ins reject typedefs of MMA types
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bergner at gcc dot gnu.org
  Target Milestone: ---

We need to accept typedefs of MMA types too:

typedef __vector_quad vquad_t;

void
foo (__vector_quad *dst)
{
  __builtin_mma_xxsetaccz (dst);
}

void
bar (vquad_t *dst)
{
  __builtin_mma_xxsetaccz (dst);
}

bergner@pike:~/gcc/BUGS$ gcc -S -O2 -mcpu=power10 bug.c 
bug.c: In function ‘bar’:
bug.c:12:3: error: invalid conversion from type ‘* __vector_quad’
   12 |   __builtin_mma_xxsetaccz (dst);
      |   ^~~~~~~~~~~~~~~~~~~~~~~

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

end of thread, other threads:[~2020-08-10  3:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07 21:38 [Bug target/96530] New: MMA built-ins reject typedefs of MMA types bergner at gcc dot gnu.org
2020-08-07 21:39 ` [Bug target/96530] " bergner at gcc dot gnu.org
2020-08-08 16:58 ` cvs-commit at gcc dot gnu.org
2020-08-08 17:02 ` bergner at gcc dot gnu.org
2020-08-10  3:11 ` cvs-commit at gcc dot gnu.org
2020-08-10  3:13 ` bergner 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).