This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81389] _mm_cmpestri segfault on -O0
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Aug 2017 12:30:38 +0000
- Subject: [Bug target/81389] _mm_cmpestri segfault on -O0
- Auto-submitted: auto-generated
- References: <bug-81389-4@http.gcc.gnu.org/bugzilla/>
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.