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/66804] Alignment issue caused by auto vectorization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66804

--- Comment #4 from Fei Yang <felix.yang at huawei dot com> ---
(In reply to Markus Trippelsdorf from comment #2)
> You're invoking undefined behavior:

test.c:34:12: runtime error: store to
> misaligned address 0x000000401c8c for type 'unsigned char *', which requires
> 8 byte alignment
0x000000401c8c: note: pointer points here
  00 00 00 00 00
> 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00
> 00 00 00
              ^ 

So your testcase is invalid.

Any reference? The testcase works fine without vectorization. thanks


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