Skip to content

Commit fdbdbae

Browse files
authored
Merge pull request #5273 from Rageking8/adjust-c4556-example
Adjust C4556 example
2 parents e324f12 + d550eb6 commit fdbdbae

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 1) C4556"
32
title: "Compiler Warning (level 1) C4556"
4-
ms.date: "08/27/2018"
3+
description: "Learn more about: Compiler Warning (level 1) C4556"
4+
ms.date: "03/28/2025"
55
f1_keywords: ["C4556"]
66
helpviewer_keywords: ["C4556"]
7-
ms.assetid: e4c0e296-b747-4db1-9608-30b8b74feac2
87
---
98
# Compiler Warning (level 1) C4556
109

11-
> value of intrinsic immediate argument '*value*' is out of range '*lowerbound* - *upperbound*'
10+
> value of intrinsic immediate argument '*value*' is out of range '*lower_bound* - *upper_bound*'
1211
1312
## Remarks
1413

1514
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.
1615

1716
## Example
1817

19-
The following sample generates C4556:
18+
The following example generates C4556:
2019

2120
```cpp
2221
// C4556.cpp
2322
// compile with: /W1
24-
// processor: x86 IPF
23+
// processor: x86
2524
#include <xmmintrin.h>
2625

27-
void test()
28-
{
29-
__m64 m;
30-
_m_pextrw(m, 5); // C4556
31-
}
32-
3326
int main()
3427
{
28+
__m64 m = _mm_setzero_si64();
29+
_m_pextrw(m, 5); // C4556
30+
_mm_empty();
3531
}
3632
```

0 commit comments

Comments
 (0)