public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94680] New: Missed optimization with __builtin_shuffle and zero vector
@ 2020-04-21  8:35 jakub at gcc dot gnu.org
  2020-04-21  8:38 ` [Bug target/94680] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-04-21  8:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94680
           Summary: Missed optimization with __builtin_shuffle and zero
                    vector
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

typedef float V __attribute__((vector_size(16)));
typedef int VI __attribute__((vector_size(16)));

V
foo (V x)
{
  return __builtin_shuffle (x, (V) { 0, 0, 0, 0 }, (VI) {0, 1, 4, 5});
}

can be done using movq or vmovq in a single insn, rather than zeroing a
register and doing movlhps.

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

end of thread, other threads:[~2022-03-17 15:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-21  8:35 [Bug target/94680] New: Missed optimization with __builtin_shuffle and zero vector jakub at gcc dot gnu.org
2020-04-21  8:38 ` [Bug target/94680] " jakub at gcc dot gnu.org
2021-04-21  0:38 ` pinskia at gcc dot gnu.org
2021-04-21  0:47 ` pinskia at gcc dot gnu.org
2021-04-21  8:59 ` crazylht at gmail dot com
2021-05-07  2:24 ` crazylht at gmail dot com
2021-05-13  0:42 ` cvs-commit at gcc dot gnu.org
2022-03-17 15:12 ` roger at nextmovesoftware 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).