Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 794 Bytes

compiler-warning-level-1-c4556.md

File metadata and controls

32 lines (25 loc) · 794 Bytes
title description ms.date f1_keywords helpviewer_keywords
Compiler Warning (level 1) C4556
Learn more about: Compiler Warning (level 1) C4556
03/28/2025
C4556
C4556

Compiler Warning (level 1) C4556

value of intrinsic immediate argument 'value' is out of range 'lower_bound - upper_bound'

Remarks

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.

Example

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();
}