public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100637] New: [i386] Vectorize 4-byte vectors
@ 2021-05-17 12:19 ubizjak at gmail dot com
  2021-05-17 12:24 ` [Bug target/100637] " ubizjak at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ubizjak at gmail dot com @ 2021-05-17 12:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100637
           Summary: [i386] Vectorize 4-byte vectors
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com
  Target Milestone: ---

Following testcases involving 4 byte vectors, e.g.:

typedef char __v4qi __attribute__ ((__vector_size__ (4)));

__v4qi foo (__v4qi a, __v4qi b, __v4qi c)
{
  return (a & ~b) + c;
}

char rb[4], sb[4], tb[4];

void bar_b (void)
{
  int i;

  for (i = 0; i < 4; i++)
    rb[i] = sb[i] + tb[i];
}

short rw[2], sw[2], tw[2];

void bar_w (void)
{
  int i;

  for (i = 0; i < 2; i++)
    rw[i] = sw[i] + tw[i];
}

should vectorize on SSE2 targets using partial vectors.

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

end of thread, other threads:[~2022-01-12 19:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 12:19 [Bug target/100637] New: [i386] Vectorize 4-byte vectors ubizjak at gmail dot com
2021-05-17 12:24 ` [Bug target/100637] " ubizjak at gmail dot com
2021-05-18 15:28 ` cvs-commit at gcc dot gnu.org
2021-05-20  9:12 ` cvs-commit at gcc dot gnu.org
2021-05-21  6:02 ` cvs-commit at gcc dot gnu.org
2021-05-21 11:16 ` cvs-commit at gcc dot gnu.org
2021-05-27  7:22 ` cvs-commit at gcc dot gnu.org
2021-05-27 12:48 ` cvs-commit at gcc dot gnu.org
2021-06-03 18:06 ` cvs-commit at gcc dot gnu.org
2021-06-04 15:38 ` cvs-commit at gcc dot gnu.org
2021-06-07 21:00 ` cvs-commit at gcc dot gnu.org
2021-07-05 19:11 ` ubizjak at gmail dot com
2021-07-08 10:21 ` cvs-commit at gcc dot gnu.org
2022-01-12 19:03 ` cvs-commit at gcc dot gnu.org
2022-01-12 19:23 ` ubizjak at gmail dot com

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