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 target/81389] _mm_cmpestri segfault on -O0


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.

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