title | description | ms.date | f1_keywords | helpviewer_keywords | ||
---|---|---|---|---|---|---|
Compiler Warning (level 1) C4556 |
Learn more about: Compiler Warning (level 1) C4556 |
03/28/2025 |
|
|
value of intrinsic immediate argument 'value' is out of range 'lower_bound - upper_bound'
An intrinsic matches a hardware instruction. The hardware instruction has a fixed number of bits to encode the constant. If value is out of range, it will not encode properly. The compiler truncates the extra bits.
The following example generates C4556:
// C4556.cpp
// compile with: /W1
// processor: x86
#include <xmmintrin.h>
int main()
{
__m64 m = _mm_setzero_si64();
_m_pextrw(m, 5); // C4556
_mm_empty();
}