Compiler Warning (level 1) C4558

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Warning (level 1) C4558.

value of operand 'value' is out of range 'lowerbound - upperbound'

The value passed to an assembly language instruction is out of the range specified for the parameter. The value will be truncated.

The following sample generates C4558:

// C4558.cpp  
// compile with: /W1  
// processor: x86  
void asm_test() {  
   __asm pinsrw   mm1, eax, 8;   // C4558  
}  
  
int main() {  
}  

Show: