[Bug target/81389] _mm_cmpestri segfault on -O0
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 10 12:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to rockeet from comment #9)
> Created attachment 41962 [details]
> test intrinsic _mm_cmpestri
>
> test case source file is attached.
>
> $ g++ -march=native _mm_cmpestri_test.cpp # default -O0
> $ ./a.out # segfault
> Segmentation fault (core dumped)
*(const __m128i*)(ptr+3),
^^^^^^^^^^^^^^^^^^ You can't lie to compiler. This isn't aligned.
*(const __m128i_u *)(ptr+3),
^^^^^^^^^^ Please use __m128i_u instead.
More information about the Gcc-bugs
mailing list