From: Ekaterina Romanova Date: Fri, 10 Apr 2015 02:39:45 +0000 (+0000) Subject: _mm256_blend_epi16 is being cast to __m256d instead of __m256i. Fixing this. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=448bc89c80be63221f324ce9a3494de09392865b;p=clang _mm256_blend_epi16 is being cast to __m256d instead of __m256i. Fixing this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234560 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/avx2intrin.h b/lib/Headers/avx2intrin.h index 7485bddb41..949195bea4 100644 --- a/lib/Headers/avx2intrin.h +++ b/lib/Headers/avx2intrin.h @@ -160,7 +160,7 @@ _mm256_blendv_epi8(__m256i __V1, __m256i __V2, __m256i __M) #define _mm256_blend_epi16(V1, V2, M) __extension__ ({ \ __m256i __V1 = (V1); \ __m256i __V2 = (V2); \ - (__m256d)__builtin_shufflevector((__v16hi)__V1, (__v16hi)__V2, \ + (__m256i)__builtin_shufflevector((__v16hi)__V1, (__v16hi)__V2, \ (((M) & 0x01) ? 16 : 0), \ (((M) & 0x02) ? 17 : 1), \ (((M) & 0x04) ? 18 : 2), \