public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/92243] Missing "auto-vectorization" of char array reversal using x86 scalar bswap when SIMD pshufb isn't available
[not found] <bug-92243-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-29 5:56 ` pinskia at gcc dot gnu.org
2021-12-29 5:57 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29 5:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92243
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Component|target |tree-optimization
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/92243] Missing "auto-vectorization" of char array reversal using x86 scalar bswap when SIMD pshufb isn't available
[not found] <bug-92243-4@http.gcc.gnu.org/bugzilla/>
2021-12-29 5:56 ` [Bug tree-optimization/92243] Missing "auto-vectorization" of char array reversal using x86 scalar bswap when SIMD pshufb isn't available pinskia at gcc dot gnu.org
@ 2021-12-29 5:57 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29 5:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92243
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Even lowering of VEC_PERM for this case:
#define vector __attribute__((vector_size(16)))
vector char f(vector char a)
{
a = __builtin_shufflevector (a, a,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0);
return a;
}
---- CUT ---
could be done just as 2 (or 4) extraction followed by a bswap if the target
does not support the VEC_PERM too.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-29 5:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-92243-4@http.gcc.gnu.org/bugzilla/>
2021-12-29 5:56 ` [Bug tree-optimization/92243] Missing "auto-vectorization" of char array reversal using x86 scalar bswap when SIMD pshufb isn't available pinskia at gcc dot gnu.org
2021-12-29 5:57 ` 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).