public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109498] New: SVE support for ctz
@ 2023-04-13 12:21 rsandifo at gcc dot gnu.org
2024-02-22 19:41 ` [Bug target/109498] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2023-04-13 12:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109498
Bug ID: 109498
Summary: SVE support for ctz
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: rsandifo at gcc dot gnu.org
Target Milestone: ---
Target: aarch64*-*-*
We fail to vectorise the following function with SVE:
// -march=armv8.2-a+sve -O2
void
ctz (int *__restrict x, int *__restrict y, int n)
{
for (int i = 0; i < n; i++)
x[i] = __builtin_ctz (y[i]);
}
It should use a combination of RBIT + CLZ.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/109498] SVE support for ctz
2023-04-13 12:21 [Bug target/109498] New: SVE support for ctz rsandifo at gcc dot gnu.org
@ 2024-02-22 19:41 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-22 19:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109498
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |14.0
Known to fail| |13.2.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks to be fixed on the trunk for GCC 14.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-22 19:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-13 12:21 [Bug target/109498] New: SVE support for ctz rsandifo at gcc dot gnu.org
2024-02-22 19:41 ` [Bug target/109498] " 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).