This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77895] Unaligned movdqa generated by GCC 6.2.0 with -O3
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Oct 2016 10:23:05 +0000
- Subject: [Bug tree-optimization/77895] Unaligned movdqa generated by GCC 6.2.0 with -O3
- Auto-submitted: auto-generated
- References: <bug-77895-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77895
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
*((unsigned int*)dst) = *((unsigned int*)src);
this requires dst and src to be aligned as 'unsigned int'. Thus vectorization
will peel until it reaches alignment (which it can't for your 1-byte aligned
src/dst).