forked from OSchip/llvm-project
[X86] Add a few missing typecasts to intrinsics. Found by playing with -fno-lax-vector-conversions on the builtin tests.
llvm-svn: 269734
This commit is contained in:
parent
3007cde8c5
commit
cd45b1a7c7
|
@ -32,7 +32,9 @@
|
|||
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx2")))
|
||||
|
||||
/* SSE4 Multiple Packed Sums of Absolute Difference. */
|
||||
#define _mm256_mpsadbw_epu8(X, Y, M) __builtin_ia32_mpsadbw256((X), (Y), (M))
|
||||
#define _mm256_mpsadbw_epu8(X, Y, M) \
|
||||
(__m256i)__builtin_ia32_mpsadbw256((__v32qi)(__m256i)(X), \
|
||||
(__v32qi)(__m256i)(Y), (int)(M))
|
||||
|
||||
static __inline__ __m256i __DEFAULT_FN_ATTRS
|
||||
_mm256_abs_epi8(__m256i __a)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue