_mm256_blend_epi16 is being cast to __m256d instead of __m256i

Eric Christopher echristo at gmail.com
Thu Apr 9 17:11:14 PDT 2015


Should have gone to cfe-commits, but yes this is OK.

-eric

On Thu, Apr 9, 2015 at 5:09 PM Romanova, Katya <
Katya_Romanova at playstation.sony.com> wrote:

>  Hello,
>
>
>
> _mm256_blend_epi16 is being cast to __m256d instead of __m256i. This needs
> to be changed.
>
>
>
>
> https://software.intel.com/sites/products/documentation/doclib/iss/2013/compiler/cpp-lin/GUID-5369B2B5-B1E1-4D96-85AB-2019982667B4.htm
>
>
>
> The patch is below.
>
> Please review and let me know if it’s OK to commit.
>
>
>
>
>
> Index: avx2intrin.h
>
> ===================================================================
>
> --- avx2intrin.h        (revision 233656)
>
> +++ avx2intrin.h        (working copy)
>
> @@ -160,7 +160,7 @@
>
> #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), \
>
>
>
>
>
> Thanks!
>
> Katya.
>  _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150410/9d151f0e/attachment.html>


More information about the llvm-commits mailing list