This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/68786] Aligned masked store is generated for unaligned pointer
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Dec 2015 16:57:28 +0000
- Subject: [Bug tree-optimization/68786] Aligned masked store is generated for unaligned pointer
- Auto-submitted: auto-generated
- References: <bug-68786-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68786
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 36963
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36963&action=edit
gcc6-pr68786.patch
Untested fix. Not adding any testcase, because the one included here is bad -
Micha's loop splitting optimization is likely going to turn that into two
separate loops, plus to avoid undefined behavior one has to call test with b <=
0 and in that case it will be always < 7.