This is the mail archive of the gcc-help@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]

Re: -msse4.1 causes "SSE4.2 instruction set not enabled"


On Wed, Aug 9, 2017 at 12:59 AM, Xi Ruoyao <ryxi@stu.xidian.edu.cn> wrote:
> On 2017-08-08 23:48 -0400, Jeffrey Walton wrote:
>> Hi Everyone,
>>
>> I'm working on fully patched Solaris 11.3 that uses GCC 4.8.2 compiler.
>>
>> $ cat test.cxx
>> #if defined(__SSE4_1__)
>> # include <emmintrin.h>
>> # include <nmmintrin.h>
>
> Use <smmintrin.h>.
>
> Or, upgrade to GCC 5.

Thanks Xi.

How did you know to use <smmintrin.h>? Intel docs say <nmmintrin.h> is
the header to use, and GCC says to use Intel docs.

Jeff


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