public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113171] New: Unneeded zero extend after widening load with SVE
@ 2023-12-29 14:39 tnfchris at gcc dot gnu.org
2023-12-29 14:40 ` [Bug target/113171] " tnfchris at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2023-12-29 14:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113171
Bug ID: 113171
Summary: Unneeded zero extend after widening load with SVE
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: tnfchris at gcc dot gnu.org
Target Milestone: ---
Target: aarch64*
The following testcase
#include <stdint.h>
void __attribute__ ((noinline, noclone))
unpack_double_int_plus9 (double *d, uint32_t *s, int size)
{
for (int i = 0; i < size; i++)
d[i] = (double) (s[i] + 9);
}
compiled with
-march=armv8-a+sve -O2 -ftree-vectorize
generates:
.L3:
ld1w z31.d, p7/z, [x1, x3, lsl 2]
add z31.s, z31.s, #9
uxtw z31.d, p6/m, z31.d
scvtf z31.d, p6/m, z31.d
st1d z31.d, p7, [x0, x3, lsl 3]
incd x3
whilelo p7.d, w3, w2
b.any .L3
which looks like the zero extend is unneeded.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/113171] Unneeded zero extend after widening load with SVE
2023-12-29 14:39 [Bug target/113171] New: Unneeded zero extend after widening load with SVE tnfchris at gcc dot gnu.org
@ 2023-12-29 14:40 ` tnfchris at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2023-12-29 14:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113171
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
Whoops, missed the add in between
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-29 14:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29 14:39 [Bug target/113171] New: Unneeded zero extend after widening load with SVE tnfchris at gcc dot gnu.org
2023-12-29 14:40 ` [Bug target/113171] " tnfchris 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).