Hi,
the following intrinsic code produces a fatal compiler error. The _MM_FROUND_CUR_DIRECTION parameter is explicitly mentioned by the Intel Intrinsics Guide, so I assume this is a compiler bug? If so, it would be great if it could be fixed.
#include <immintrin.h> __m256i cvt(__m512 x) { return _mm512_cvtps_ph(x, _MM_FROUND_CUR_DIRECTION); }
icpc test.cpp -xMIC-AVX512
test.cpp(4): (col. 12) catastrophic error: Illegal value of immediate argument to intrinsic compilation aborted for test.cpp (code 1)
Thanks,
Wenzel
Link Copied
Apologies for reposting this (https://software.intel.com/en-us/forums/intel-c-compiler/topic/673498), I didn't see my earlier post and assumed that it was rejected for some reason. The issue remains, however.
For more complete information about compiler optimizations, see our Optimization Notice.