We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c5c267 + 438aad3 commit 5fcf8c9Copy full SHA for 5fcf8c9
regression/cbmc/SIMD1/main.c
@@ -7,11 +7,14 @@
7
# define _mm_extract_pi16(a, b) _mm_extract_epi16(a, b)
8
# endif
9
#else
10
-# include <immintrin.h>
+# ifdef __MMX__
11
+# include <immintrin.h>
12
+# endif
13
#endif
14
15
int main()
16
{
17
+#if defined(_MSC_VER) || defined(__MMX__)
18
__m128i values = _mm_setr_epi32(0x1234, 0x2345, 0x3456, 0x4567);
19
int val1 = _mm_extract_epi32(values, 0);
20
assert(val1 == 0x1234);
@@ -53,6 +56,7 @@ int main()
53
56
__m128i result128 = _mm_subs_epu16(x, y);
54
57
short s = _mm_extract_epi16(result128, 0);
55
58
assert(s == 0);
59
+#endif
60
61
return 0;
62
}
0 commit comments