[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #1 from Fei Yang --- Also reproducible with GCC-5 and GCC-6.

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #2 from Markus Trippelsdorf --- You're invoking undefined behavior: test.c:34:12: runtime error: store to misaligned address 0x00401c8c for type 'unsigned char *', which requires 8 byte alignment 0x00401c8c: note: pointer poi

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread felix.yang at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #4 from Fei Yang --- (In reply to Markus Trippelsdorf from comment #2) > You're invoking undefined behavior: test.c:34:12: runtime error: store to > misaligned address 0x00401c8c for type 'unsigned char *', which requires > 8 byt

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #5 from Richard Biener --- (In reply to Fei Yang from comment #4) > (In reply to Markus Trippelsdorf from comment #2) > > You're invoking undefined behavior: > > test.c:34:12: runtime error: store to > > misaligned address 0x0040

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #6 from Markus Trippelsdorf --- See discussion in PR65709 for a similar issue.

[Bug tree-optimization/66804] Alignment issue caused by auto vectorization

2015-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804 --- Comment #7 from Richard Biener --- CCP computes this precisely: Visiting PHI node: # PT = { D.1842 } (nonlocal, escaped) p_3 = PHI <&MEM[(void *)&xxx + 2444B](2), p_4(3)> Argument #0 (2 -> 4 executable) &MEM[(void *)&xxx + 2444B