aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Headers/smmintrin.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-05-17 03:42:31 +0000
committerCraig Topper <craig.topper@gmail.com>2016-05-17 03:42:31 +0000
commitcd45b1a7c725008e1c0a210ee18f35cb6018c833 (patch)
treef4422c74891825fa74dffb119f48c77b774f9dec /clang/lib/Headers/smmintrin.h
parent3007cde8c5bbbb235628eda8ef526e5f15b08a09 (diff)
downloadllvm-cd45b1a7c725008e1c0a210ee18f35cb6018c833.zip
llvm-cd45b1a7c725008e1c0a210ee18f35cb6018c833.tar.gz
llvm-cd45b1a7c725008e1c0a210ee18f35cb6018c833.tar.bz2
[X86] Add a few missing typecasts to intrinsics. Found by playing with -fno-lax-vector-conversions on the builtin tests.
llvm-svn: 269734
Diffstat (limited to 'clang/lib/Headers/smmintrin.h')
-rw-r--r--clang/lib/Headers/smmintrin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Headers/smmintrin.h b/clang/lib/Headers/smmintrin.h
index 69ad07f..81c0fca 100644
--- a/clang/lib/Headers/smmintrin.h
+++ b/clang/lib/Headers/smmintrin.h
@@ -220,16 +220,16 @@ _mm_max_epu32 (__m128i __V1, __m128i __V2)
#define _mm_insert_epi8(X, I, N) (__extension__ \
({ __v16qi __a = (__v16qi)(__m128i)(X); \
__a[(N) & 15] = (I); \
- __a;}))
+ (__m128i)__a;}))
#define _mm_insert_epi32(X, I, N) (__extension__ \
({ __v4si __a = (__v4si)(__m128i)(X); \
__a[(N) & 3] = (I); \
- __a;}))
+ (__m128i)__a;}))
#ifdef __x86_64__
#define _mm_insert_epi64(X, I, N) (__extension__ \
({ __v2di __a = (__v2di)(__m128i)(X); \
__a[(N) & 1] = (I); \
- __a;}))
+ (__m128i)__a;}))
#endif /* __x86_64__ */
/* Extract int from packed integer array at index. This returns the element