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
* [Bug target/113872] PERM<{0},a,{3,4,5,6}> is not producing SHL (for little-endian) and USHR for big-endian
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 ` pinskia at gcc dot gnu.org
2024-02-11 22:17 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-11 18:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113872
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2024-02-11
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine, I have a patch.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/113872] PERM<{0},a,{3,4,5,6}> is not producing SHL (for little-endian) and USHR for big-endian
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
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-11 22:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113872
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://gcc.gnu.org/piperma
| |il/gcc-patches/2024-Februar
| |y/645379.html
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Patch submitted:
https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645379.html
^ 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).