value out of range for intrinsic constant argument
Some intrinsics require a constant argument. This error is generated when the argument is out-of-range. Check the documentation and only pass in-range argument values when invoking the intrinsics. The following sample generates C2725:
#include <mmintrin.h> __m128 x1, x2; void val_is_out_of_range(){ x1 = _mm_shuffle_ps(x1, x2, -1); // C2725 x1 = _mm_shuffle_ps(x1, x2, 256); // C2725 /* use the below lines to resolve the error x1 = _mm_shuffle_ps(x1, x2, 0); x1 = _mm_shuffle_ps(x1, x2, 255); */ }