Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7942 Discussions

Catastrophic error: Illegal value of immediate argument to intrinsic

Jakob__Wenzel
Beginner
410 Views

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

0 Kudos
1 Reply
Jakob__Wenzel
Beginner
410 Views

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.

0 Kudos
Reply