public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113872] New: PERM<{0},a,{3,4,5,6}> is not producing SHL (for little-endian) and USHR for big-endian
@ 2024-02-11  5:51 pinskia at gcc dot gnu.org
  2024-02-11 18:19 ` [Bug target/113872] " pinskia at gcc dot gnu.org
  2024-02-11 22:17 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-11  5:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113872
           Summary: PERM<{0},a,{3,4,5,6}> is not producing SHL (for
                    little-endian) and USHR for big-endian
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Take:
```
#define vect64 __attribute__((vector_size(8)))

void f(vect64  unsigned short *a)
{
  *a = __builtin_shufflevector((vect64 unsigned short){0},*a, 3,4,5,6);
}
```

This should produce:
```
        ldr     d31, [x0]
        shl d31, d31, 16
        str     d31, [x0]
```
For little-endian

I suspect this is just a missing `vec_shl_M` pattern.

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

end of thread, other threads:[~2024-02-11 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-11  5:51 [Bug target/113872] New: PERM<{0},a,{3,4,5,6}> is not producing SHL (for little-endian) and USHR for big-endian pinskia at gcc dot gnu.org
2024-02-11 18:19 ` [Bug target/113872] " pinskia at gcc dot gnu.org
2024-02-11 22:17 ` pinskia 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).