-msse4.1 causes "SSE4.2 instruction set not enabled"
Jeffrey Walton
noloader@gmail.com
Fri Aug 11 09:22:00 GMT 2017
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
More information about the Gcc-help
mailing list