This documentation is archived and is not being maintained.

Compiler Error C2954

Error Message

instruction word argument not in range

An invalid parameter was passed to an __lfetch intrinsic. For more inforamtion, see __lfetch, __lfetch_excl, __lfetchfault, __lfetchfault_excl.


The following sample generates C2954.

// C2954.cpp
// compile with: /c
// processor: IPF
#include <intrin.h>
#pragma intrinsic(__lfetch)
int f(int *p, int x) {
   __lfetch(5, p);   // C2954
   __lfetch(2, p);   // OK
   return *p;