http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
--- Comment #1 from H.J. Lu ---
The code is invalid since -march=i686 doesn't support SSE.
The older GCC issues:
In file included from /tmp/pr59789.c:2:0:
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/emmintrin.h:31:3: error: #error
"SSE2 instru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
H.J. Lu changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
H.J. Lu changed:
What|Removed |Added
CC||hjl.tools at gmail dot com
Target Milestone|-
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
--- Comment #2 from Alexander Ivchenko ---
lets just say that my code is valid and I forgot to add "-msse2" :).
(In reply to H.J. Lu from comment #1)
> The code is invalid since -march=i686 doesn't support SSE.
> The older GCC issues:
>
> In fi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
--- Comment #3 from H.J. Lu ---
(In reply to Alexander Ivchenko from comment #2)
> lets just say that my code is valid and I forgot to add "-msse2" :).
>
Does GCC ICE with -msse2?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
H.J. Lu changed:
What|Removed |Added
CC||tmsriram at google dot com
--- Comment #4 from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
--- Comment #5 from H.J. Lu ---
A smaller testcase:
[hjl@gnu-6 gcc]$ cat /tmp/x.c
#pragma GCC push_options
#pragma GCC target("sse2")
typedef int __v4si __attribute__ ((__vector_size__ (16)));
typedef long long __m128i __attribute__ ((__vector_si
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59789
--- Comment #6 from H.J. Lu ---
Created attachment 31824
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31824&action=edit
A patch
This is a patch based on
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57698#c7