Skip to content

Commit

Permalink
[X86] Add explicit typecasts to some intrinsics.
Browse files Browse the repository at this point in the history
llvm-svn: 272466
  • Loading branch information
topperc committed Jun 11, 2016
1 parent 43d67b6 commit 26d5b87
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions clang/lib/Headers/avx512vlbwintrin.h
Original file line number Diff line number Diff line change
Expand Up @@ -2428,22 +2428,24 @@ _mm256_maskz_cvtepu8_epi16 (__mmask16 __U, __m128i __A)

#define _mm_mask_shufflelo_epi16(W, U, A, imm) __extension__ ({ \
(__m128i)__builtin_ia32_selectw_128((__mmask8)(U), \
_mm_shufflelo_epi16((A), (imm)), \
(__v8hi)_mm_shufflelo_epi16((A), (imm)), \
(__v8hi)(__m128i)(W)); })

#define _mm_maskz_shufflelo_epi16(U, A, imm) __extension__ ({ \
(__m128i)__builtin_ia32_selectw_128((__mmask8)(U), \
_mm_shufflelo_epi16((A), (imm)), \
(__v8hi)_mm_shufflelo_epi16((A), (imm)), \
(__v8hi)_mm_setzero_hi()); })

#define _mm256_mask_shufflelo_epi16(W, U, A, imm) __extension__ ({ \
(__m256i)__builtin_ia32_selectw_256((__mmask16)(U), \
_mm256_shufflelo_epi16((A), (imm)), \
(__v16hi)_mm256_shufflelo_epi16((A), \
(imm)), \
(__v16hi)(__m256i)(W)); })

#define _mm256_maskz_shufflelo_epi16(U, A, imm) __extension__ ({ \
(__m256i)__builtin_ia32_selectw_256((__mmask16)(U), \
_mm256_shufflelo_epi16((A), (imm)), \
(__v16hi)_mm256_shufflelo_epi16((A), \
(imm)), \
(__v16hi)_mm256_setzero_si256()); })

static __inline__ __m256i __DEFAULT_FN_ATTRS
Expand Down

0 comments on commit 26d5b87

Please sign in to comment.