This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/77895] Unaligned movdqa generated by GCC 6.2.0 with -O3


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]